Fix bug where components unclickable

This commit is contained in:
Henry Heng 2023-05-14 19:13:21 +01:00 committed by GitHub
parent aca5bd715d
commit d411aaf2d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -59,7 +59,6 @@ const Main = styled('main', { shouldForwardProp: (prop) => prop !== 'open' })(({
const MainLayout = () => {
const theme = useTheme()
const matchDownMd = useMediaQuery(theme.breakpoints.down('lg'))
// Handle left drawer
const leftDrawerOpened = useSelector((state) => state.customization.opened)
@ -68,11 +67,6 @@ const MainLayout = () => {
dispatch({ type: SET_MENU, opened: !leftDrawerOpened })
}
//useEffect(() => {
// dispatch({ type: SET_MENU, opened: !matchDownMd })
// // eslint-disable-next-line react-hooks/exhaustive-deps
//}, [matchDownMd])
return (
<Box sx={{ display: 'flex' }}>
<CssBaseline />