@@ -64,7 +64,7 @@ function ListItemStyled(props: {
6464 sx = { [
6565 {
6666 width : { drawerWidth } ,
67- minHeight : 48 ,
67+ minHeight : 32 ,
6868 px : 2.5 ,
6969 } ,
7070 open
@@ -252,129 +252,10 @@ export default function SideDrawer() {
252252 </ >
253253 ) ;
254254
255- // return (
256- // <Drawer2
257- // variant="permanent"
258- // open={open}
259- // onMouseEnter={() => {
260- // setOpen(true);
261- // }}
262- // onMouseLeave={() => {
263- // setOpen(false);
264- // }}
265- // >
266- // <Divider />
267- // <List>
268- // {["Inbox", "Starred", "Send email", "Drafts"].map((text, index) => (
269- // <ListItem key={text} disablePadding sx={{ display: "block" }}>
270- // <ListItemButton
271- // sx={[
272- // {
273- // minHeight: 48,
274- // px: 2.5,
275- // },
276- // open
277- // ? {
278- // justifyContent: "initial",
279- // }
280- // : {
281- // justifyContent: "center",
282- // },
283- // ]}
284- // >
285- // <ListItemIcon
286- // sx={[
287- // {
288- // minWidth: 0,
289- // justifyContent: "center",
290- // },
291- // open
292- // ? {
293- // mr: 3,
294- // }
295- // : {
296- // mr: "auto",
297- // },
298- // ]}
299- // >
300- // <MenuIcon />
301- // </ListItemIcon>
302- // <ListItemText
303- // primary={text}
304- // sx={[
305- // open
306- // ? {
307- // opacity: 1,
308- // }
309- // : {
310- // opacity: 0,
311- // },
312- // ]}
313- // />
314- // </ListItemButton>
315- // </ListItem>
316- // ))}
317- // </List>
318- // <Divider />
319- // <List>
320- // {["All mail", "Trash", "Spam"].map((text, index) => (
321- // <ListItem key={text} disablePadding sx={{ display: "block" }}>
322- // <ListItemButton
323- // sx={[
324- // {
325- // minHeight: 48,
326- // px: 2.5,
327- // },
328- // open
329- // ? {
330- // justifyContent: "initial",
331- // }
332- // : {
333- // justifyContent: "center",
334- // },
335- // ]}
336- // >
337- // <ListItemIcon
338- // sx={[
339- // {
340- // minWidth: 0,
341- // justifyContent: "center",
342- // },
343- // open
344- // ? {
345- // mr: 3,
346- // }
347- // : {
348- // mr: "auto",
349- // },
350- // ]}
351- // >
352- // <MenuIcon />
353- // </ListItemIcon>
354- // <ListItemText
355- // primary={text}
356- // sx={[
357- // open
358- // ? {
359- // opacity: 1,
360- // }
361- // : {
362- // opacity: 0,
363- // },
364- // ]}
365- // />
366- // </ListItemButton>
367- // </ListItem>
368- // ))}
369- // </List>
370- // </Drawer2>
371- // );
372-
373255 return (
374256 < Drawer2
375257 variant = "permanent"
376258 open = { open }
377- // onClose={toggleDrawer(false)}
378259 onMouseEnter = { ( ) => {
379260 setOpen ( true ) ;
380261 } }
@@ -385,14 +266,4 @@ export default function SideDrawer() {
385266 { DrawerList }
386267 </ Drawer2 >
387268 ) ;
388-
389- // return DrawerList;
390- // <>
391- // <IconButton size="large" onClick={toggleDrawer(true)}>
392- // <MenuIcon color="secondary" fontSize="large" />
393- // </IconButton>
394- // <Drawer open={open} onClose={toggleDrawer(false)}>
395- // {DrawerList}
396- // </Drawer>
397- // </>
398269}
0 commit comments