Skip to content

Commit

Permalink
[base] Remove use of Layer in ActivateOnFocus
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Feb 4, 2021
1 parent 42db1d0 commit 40351fd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {Layer} from '@sanity/ui'
import classNames from 'classnames'
import React from 'react'
import enhanceWithClickOutside from 'react-click-outside'
Expand Down Expand Up @@ -63,7 +62,7 @@ class ActivateOnFocus extends React.Component<ActivateOnFocusProps> {
const overlayClassName = classNames(styles.overlay, overlayClassNameProp)

return (
<Layer className={className} id={inputId}>
<div className={className} id={inputId}>
{!isActive && (
<div className={styles.eventHandler} onClick={this.handleClick}>
<div className={overlayClassName}>
Expand All @@ -73,7 +72,7 @@ class ActivateOnFocus extends React.Component<ActivateOnFocusProps> {
</div>
)}
<div className={styles.content}>{children}</div>
</Layer>
</div>
)
}
}
Expand Down

0 comments on commit 40351fd

Please sign in to comment.