updates on the css
This commit is contained in:
@@ -31,10 +31,10 @@ const MainLayout = () => {
|
|||||||
|
|
||||||
const isHorizontal = menuOrientation === MenuOrientation.HORIZONTAL && !downLG;
|
const isHorizontal = menuOrientation === MenuOrientation.HORIZONTAL && !downLG;
|
||||||
|
|
||||||
// set media wise responsive drawer
|
// sidebar should default to closed regardless of screen size
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!miniDrawer) {
|
if (!miniDrawer) {
|
||||||
dispatch(openDrawer(!matchDownXL));
|
dispatch(openDrawer(false));
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [matchDownXL]);
|
}, [matchDownXL]);
|
||||||
|
|||||||
Reference in New Issue
Block a user