feat: added categories
This commit is contained in:
@@ -40,11 +40,13 @@ const menuData = [
|
||||
{ title: 'Categories' }
|
||||
]
|
||||
},
|
||||
{ title: 'Products',
|
||||
children: [
|
||||
{ title: 'AR Assets Library Management' },
|
||||
{ title: 'Media Management' },
|
||||
] },
|
||||
{
|
||||
title: 'Products',
|
||||
children: [
|
||||
{ title: 'AR Assets Library Management' },
|
||||
{ title: 'Media Management' },
|
||||
]
|
||||
},
|
||||
{ title: 'Product Collections' },
|
||||
]
|
||||
}
|
||||
@@ -54,14 +56,15 @@ const menuData = [
|
||||
title: 'Customers',
|
||||
icon: <PeopleAltIcon />,
|
||||
children: [
|
||||
{ title: 'CRM',
|
||||
{
|
||||
title: 'CRM',
|
||||
children: [
|
||||
{ title: 'Customer List' },
|
||||
{ title: 'Projects' },
|
||||
{ title: 'Customer List' },
|
||||
{ title: 'Projects' },
|
||||
{ title: 'Customer Collections' },
|
||||
]
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
title: 'Sales',
|
||||
children: [
|
||||
@@ -86,12 +89,13 @@ const menuData = [
|
||||
icon: <AdminPanelSettingsIcon />,
|
||||
children: [
|
||||
{ title: 'Users Management' },
|
||||
{ title: 'Access Control',
|
||||
{
|
||||
title: 'Access Control',
|
||||
children: [
|
||||
{ title: 'Roles' },
|
||||
{ title: 'Permissions' },
|
||||
]
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -157,6 +161,8 @@ export default function MenuDrawerPrivate({
|
||||
onSelect?.('/Users/UserManagement');
|
||||
} else if (node.title === 'Product Collections') {
|
||||
onSelect?.('/ProductsManagement/CatalogManagement/ProductCollections');
|
||||
} else if (node.title === 'Categories') {
|
||||
onSelect?.('/ProductsManagement/CatalogManagement/Categories');
|
||||
} else {
|
||||
onSelect?.(node.title);
|
||||
}
|
||||
@@ -199,7 +205,7 @@ export default function MenuDrawerPrivate({
|
||||
{hasChildren && !collapsed && (
|
||||
<Collapse in={!!openMap[key]} timeout="auto" unmountOnExit>
|
||||
<List component="div" disablePadding sx={{ pl: 7 }}>
|
||||
{node.children.map((child, idx) => renderNode(child, `${key}-`))}
|
||||
{node.children.map((child) => renderNode(child, `${key}-`))}
|
||||
</List>
|
||||
</Collapse>
|
||||
)}
|
||||
@@ -303,4 +309,4 @@ export default function MenuDrawerPrivate({
|
||||
</Tooltip>
|
||||
</Drawer>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user