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 './Overlay.css'
|
||||
|
||||
const Overlay = (onClick: OnClickEvent) => (
|
||||
<div className="Overlay" onClick={onClick} />
|
||||
interface Props {
|
||||
onClick: OnClickEvent
|
||||
}
|
||||
|
||||
const Overlay = (props: Props) => (
|
||||
<div className="Overlay" onClick={props.onClick} />
|
||||
)
|
||||
|
||||
export default Overlay
|
||||
Loading…
Reference in a new issue