Fix Overlay onClick typing
This commit is contained in:
parent
3d81172d80
commit
6c11239503
1 changed files with 6 additions and 2 deletions
|
|
@ -1,8 +1,12 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import './Overlay.css'
|
import './Overlay.css'
|
||||||
|
|
||||||
const Overlay = (onClick: OnClickEvent) => (
|
interface Props {
|
||||||
<div className="Overlay" onClick={onClick} />
|
onClick: OnClickEvent
|
||||||
|
}
|
||||||
|
|
||||||
|
const Overlay = (props: Props) => (
|
||||||
|
<div className="Overlay" onClick={props.onClick} />
|
||||||
)
|
)
|
||||||
|
|
||||||
export default Overlay
|
export default Overlay
|
||||||
Loading…
Reference in a new issue