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)
|
const [currentGroup, setCurrentGroup] = useState(-1)
|
||||||
|
|
||||||
function openSelect() {
|
function openSelect() {
|
||||||
|
// debugger
|
||||||
setOpen(!open)
|
setOpen(!open)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,13 +11,16 @@ const defaultProps = {
|
||||||
visible: true,
|
visible: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
const Overlay = ({
|
const Overlay = React.forwardRef<HTMLDivElement, Props>(function Overlay(
|
||||||
visible: displayed,
|
{
|
||||||
open,
|
visible: displayed,
|
||||||
}: {
|
open,
|
||||||
visible: boolean
|
}: {
|
||||||
open: boolean
|
visible: boolean
|
||||||
}) => {
|
open: boolean
|
||||||
|
},
|
||||||
|
forwardedRef
|
||||||
|
) {
|
||||||
const [visible, setVisible] = useState(open)
|
const [visible, setVisible] = useState(open)
|
||||||
|
|
||||||
const classes = classNames({
|
const classes = classNames({
|
||||||
|
|
@ -43,7 +46,7 @@ const Overlay = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
return visible ? <div className={classes} onClick={handleClick} /> : null
|
return visible ? <div className={classes} onClick={handleClick} /> : null
|
||||||
}
|
})
|
||||||
|
|
||||||
Overlay.defaultProps = defaultProps
|
Overlay.defaultProps = defaultProps
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue