Separate Client Portal & Dashboard
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
// components
|
||||
import SvgIconStyle from '../../../components/SvgIconStyle';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const getIcon = (name: string) => (
|
||||
<SvgIconStyle src={`/icons/${name}.svg`} sx={{ width: 1, height: 1 }} />
|
||||
);
|
||||
|
||||
const ICONS = {
|
||||
user: getIcon('ic_user'),
|
||||
ecommerce: getIcon('ic_ecommerce'),
|
||||
analytics: getIcon('ic_analytics'),
|
||||
dashboard: getIcon('ic_dashboard'),
|
||||
};
|
||||
|
||||
const navConfig = [
|
||||
// GENERAL
|
||||
// ----------------------------------------------------------------------
|
||||
{
|
||||
subheader: 'general v3.2.0',
|
||||
items: [
|
||||
{ title: 'One', path: '/dashboard/one', icon: ICONS.dashboard },
|
||||
{ title: 'Two', path: '/dashboard/two', icon: ICONS.ecommerce },
|
||||
{ title: 'Three', path: '/dashboard/three', icon: ICONS.analytics },
|
||||
],
|
||||
},
|
||||
|
||||
// MANAGEMENT
|
||||
// ----------------------------------------------------------------------
|
||||
{
|
||||
subheader: 'Management',
|
||||
items: [
|
||||
{
|
||||
title: 'Master Data',
|
||||
// path: '/',
|
||||
icon: ICONS.user,
|
||||
children: [
|
||||
{ title: 'Obat', path: '/medicines' },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default navConfig;
|
||||
Reference in New Issue
Block a user