diff --git a/frontend/dashboard/src/layouts/dashboard/navbar/NavConfig.tsx b/frontend/dashboard/src/layouts/dashboard/navbar/NavConfig.tsx
index 724bbe82..df8ffd5d 100644
--- a/frontend/dashboard/src/layouts/dashboard/navbar/NavConfig.tsx
+++ b/frontend/dashboard/src/layouts/dashboard/navbar/NavConfig.tsx
@@ -19,6 +19,8 @@ export const accessGroup = {
admin: ["/report/logs"]
}
+
+
const navConfig = [
// GENERAL
// ----------------------------------------------------------------------
@@ -124,7 +126,7 @@ const navConfig = [
path: '/linking',
},
{
- title: 'E - PRESCRIPTION',
+ title: 'E-PRESCRIPTION',
path: '/e-prescription/live-chat',
},
],
diff --git a/frontend/dashboard/src/layouts/dashboard/navbar/NavbarVertical.tsx b/frontend/dashboard/src/layouts/dashboard/navbar/NavbarVertical.tsx
index a356edf3..6f7bd107 100644
--- a/frontend/dashboard/src/layouts/dashboard/navbar/NavbarVertical.tsx
+++ b/frontend/dashboard/src/layouts/dashboard/navbar/NavbarVertical.tsx
@@ -19,6 +19,7 @@ import navConfig from './NavConfig';
import NavbarDocs from './NavbarDocs';
import NavbarAccount from './NavbarAccount';
import CollapseButton from './CollapseButton';
+import useAuth from '@/hooks/useAuth';
// ----------------------------------------------------------------------
@@ -42,6 +43,7 @@ export default function NavbarVertical({ isOpenSidebar, onCloseSidebar }: Props)
const theme = useTheme();
const { pathname } = useLocation();
+ const {user} = useAuth()
const isDesktop = useResponsive('up', 'lg');
@@ -55,6 +57,16 @@ export default function NavbarVertical({ isOpenSidebar, onCloseSidebar }: Props)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [pathname]);
+ const filteredItems = navConfig.filter(section => {
+ return section.items.some(item => {
+ return item.title === 'E-PRESCRIPTION';
+ });
+ });
+
+ const filteredData = filteredItems.map(section => ({
+ items: section.items.filter(item => item.title === "E-PRESCRIPTION")
+ }));
+
const renderContent = (
-
+