Remove unused nav items and comment out info property
This commit removes several navigation items from the `navData` array in `nav-config-dashboard.tsx`, including 'Dashboard', 'User', 'Blog', 'Sign in', and 'Not found'. The 'Product' item's `info` property has also been commented out. A commented-out section has been added to preserve the removed items for reference, and `#region` and `#endregion` comments have been introduced for better code organization.
This commit is contained in:
@@ -13,39 +13,43 @@ export type NavItem = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const navData = [
|
export const navData = [
|
||||||
{
|
|
||||||
title: 'Dashboard',
|
|
||||||
path: '/',
|
|
||||||
icon: icon('ic-analytics'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'User',
|
|
||||||
path: '/user',
|
|
||||||
icon: icon('ic-user'),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: 'Product',
|
title: 'Product',
|
||||||
path: '/products',
|
path: '/products',
|
||||||
icon: icon('ic-cart'),
|
icon: icon('ic-cart'),
|
||||||
info: (
|
//#region example component
|
||||||
<Label color="error" variant="inverted">
|
// info: (
|
||||||
+3
|
// <Label color="error" variant="inverted">
|
||||||
</Label>
|
// +3
|
||||||
),
|
// </Label>
|
||||||
},
|
// ),
|
||||||
{
|
//#endregion
|
||||||
title: 'Blog',
|
|
||||||
path: '/blog',
|
|
||||||
icon: icon('ic-blog'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Sign in',
|
|
||||||
path: '/sign-in',
|
|
||||||
icon: icon('ic-lock'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Not found',
|
|
||||||
path: '/404',
|
|
||||||
icon: icon('ic-disabled'),
|
|
||||||
},
|
},
|
||||||
|
//#region example pages
|
||||||
|
// {
|
||||||
|
// title: 'Dashboard',
|
||||||
|
// path: '/',
|
||||||
|
// icon: icon('ic-analytics'),
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: 'User',
|
||||||
|
// path: '/user',
|
||||||
|
// icon: icon('ic-user'),
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: 'Blog',
|
||||||
|
// path: '/blog',
|
||||||
|
// icon: icon('ic-blog'),
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: 'Sign in',
|
||||||
|
// path: '/sign-in',
|
||||||
|
// icon: icon('ic-lock'),
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// title: 'Not found',
|
||||||
|
// path: '/404',
|
||||||
|
// icon: icon('ic-disabled'),
|
||||||
|
// },
|
||||||
|
//#endregion
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user