From 62f99842b32054ca42272f8bc65b73c7ac7bad13 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 3 Jul 2025 14:51:35 +0200 Subject: [PATCH] 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. --- .../src/layouts/nav-config-dashboard.tsx | 64 ++++++++++--------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/src/client/dd-hub-react/src/layouts/nav-config-dashboard.tsx b/src/client/dd-hub-react/src/layouts/nav-config-dashboard.tsx index ccd2cd0..b823e58 100644 --- a/src/client/dd-hub-react/src/layouts/nav-config-dashboard.tsx +++ b/src/client/dd-hub-react/src/layouts/nav-config-dashboard.tsx @@ -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: ( - - ), - }, - { - 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: ( + // + // ), + //#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 ];