Merge pull request #70 from princepride/bugfix/components-can't-be-clicked-when-zoom-out

Bugfix/components can't be clicked when zoom out
This commit is contained in:
Ong Chung Yau
2023-05-15 17:06:12 +07:00
committed by GitHub
+1 -1
View File
@@ -70,7 +70,7 @@ const MainLayout = () => {
}
useEffect(() => {
dispatch({ type: SET_MENU, opened: !matchDownMd })
setTimeout(() => dispatch({ type: SET_MENU, opened: !matchDownMd }), 0)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [matchDownMd])