feat: added categories

This commit is contained in:
2025-09-01 17:19:06 -06:00
parent af323aade7
commit 0a74c7a22a
6 changed files with 296 additions and 207 deletions

View File

@@ -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>
);
}
}