Update components to fix NextJs errors
This commit is contained in:
parent
821ef4c41b
commit
b5a7302cba
2 changed files with 12 additions and 8 deletions
|
|
@ -18,6 +18,7 @@ const JobSkillSearchFilterBar = (props: Props) => {
|
|||
const [currentGroup, setCurrentGroup] = useState(-1)
|
||||
|
||||
function openSelect() {
|
||||
// debugger
|
||||
setOpen(!open)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,13 +11,16 @@ const defaultProps = {
|
|||
visible: true,
|
||||
}
|
||||
|
||||
const Overlay = ({
|
||||
visible: displayed,
|
||||
open,
|
||||
}: {
|
||||
visible: boolean
|
||||
open: boolean
|
||||
}) => {
|
||||
const Overlay = React.forwardRef<HTMLDivElement, Props>(function Overlay(
|
||||
{
|
||||
visible: displayed,
|
||||
open,
|
||||
}: {
|
||||
visible: boolean
|
||||
open: boolean
|
||||
},
|
||||
forwardedRef
|
||||
) {
|
||||
const [visible, setVisible] = useState(open)
|
||||
|
||||
const classes = classNames({
|
||||
|
|
@ -43,7 +46,7 @@ const Overlay = ({
|
|||
}
|
||||
|
||||
return visible ? <div className={classes} onClick={handleClick} /> : null
|
||||
}
|
||||
})
|
||||
|
||||
Overlay.defaultProps = defaultProps
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue