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 = [
|
||||
{
|
||||
title: 'Dashboard',
|
||||
path: '/',
|
||||
icon: icon('ic-analytics'),
|
||||
},
|
||||
{
|
||||
title: 'User',
|
||||
path: '/user',
|
||||
icon: icon('ic-user'),
|
||||
},
|
||||
{
|
||||
title: 'Product',
|
||||
path: '/products',
|
||||
icon: icon('ic-cart'),
|
||||
info: (
|
||||
<Label color="error" variant="inverted">
|
||||
+3
|
||||
</Label>
|
||||
),
|
||||
},
|
||||
{
|
||||
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 component
|
||||
// info: (
|
||||
// <Label color="error" variant="inverted">
|
||||
// +3
|
||||
// </Label>
|
||||
// ),
|
||||
//#endregion
|
||||
},
|
||||
//#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