change style list sidebar

This commit is contained in:
AmirHossein Mahmoodi
2023-11-13 15:59:34 +03:30
parent 3cde54cda8
commit 0d88145c74
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ export default function SidebarList({handleDrawerToggle}) {
}, [selectedKey]);
return (
<List sx={{overflow: "scroll"}}>
<List dense={true} sx={{overflow: "scroll"}}>
{itemMenu.map((itemArr, index) => (
<Fragment key={index}>
{itemArr.map((item) =>

View File

@@ -34,7 +34,7 @@ const SidebarListSubItem = ({item, handleDrawerToggle}) => {
return (
<Collapse in={item.showSubItem} timeout="auto" mountOnEnter={true} unmountOnExit={true}>
<List component="div" disablePadding sx={{bgcolor: "#f6f6f6", pr: 0}}>
<List dense={true} component="div" disablePadding sx={{bgcolor: "#f6f6f6", pr: 0}}>
{item.subItem.map((subitem) => (
<ListItem key={subitem.key} disablePadding secondaryAction={renderBadge(subitem)}>
<ListItemButton