File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
demos/diagnostics-app/src/app/views Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export default function ViewsLayout({ children }: { children: React.ReactNode })
116116 onClick = { async ( ) => {
117117 await item . beforeNavigate ?.( ) ;
118118 navigate ( item . path ) ;
119- // setOpenDrawer (false);
119+ setMobileOpen ( false ) ;
120120 } } >
121121 < ListItemIcon > { item . icon ( ) } </ ListItemIcon >
122122 < ListItemText primary = { item . title } />
@@ -172,7 +172,9 @@ export default function ViewsLayout({ children }: { children: React.ReactNode })
172172 sx = { {
173173 display : { xs : 'block' , md : 'none' } ,
174174 '& .MuiDrawer-paper' : { boxSizing : 'border-box' , width : drawerWidth }
175- } } > </ Drawer >
175+ } } >
176+ { drawer }
177+ </ Drawer >
176178 < Drawer
177179 variant = "permanent"
178180 sx = { {
You can’t perform that action at this time.
0 commit comments