Fix bug where components unclickable
This commit is contained in:
parent
aca5bd715d
commit
d411aaf2d8
|
|
@ -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 />
|
||||
|
|
|
|||
Loading…
Reference in New Issue