fix routing
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
ClipboardListIcon,
|
||||
BankIcon,
|
||||
PackageMoving01Icon,
|
||||
Settings01Icon,
|
||||
} from '@hugeicons/core-free-icons'
|
||||
|
||||
export interface NavItem {
|
||||
@@ -49,6 +50,13 @@ export const DASHBOARD_ITEM: NavItem = {
|
||||
icon: DashboardSquare01Icon,
|
||||
}
|
||||
|
||||
// Standalone item rendered at the bottom — links straight to the page, no sub-nav
|
||||
export const CONFIGURATION_ITEM: NavItem = {
|
||||
title: 'Configuration',
|
||||
href: '/configuration',
|
||||
icon: Settings01Icon,
|
||||
}
|
||||
|
||||
export const NAV_GROUPS: NavGroup[] = [
|
||||
{
|
||||
title: 'Shop POs & Invoices',
|
||||
@@ -80,7 +88,7 @@ export const NAV_GROUPS: NavGroup[] = [
|
||||
title: 'Catalogue',
|
||||
icon: CatalogueIcon,
|
||||
items: [
|
||||
{ title: 'Items', href: '/catalogue/items', icon: Package01Icon, description: 'Products available for sale and distribution', permission: 'items.view' },
|
||||
{ title: 'Products', href: '/catalogue/items', icon: Package01Icon, description: 'Products available for sale and distribution', permission: 'items.view' },
|
||||
{ title: 'Categories', href: '/catalogue/categories', icon: CatalogueIcon, description: 'Product groupings and sub-categories', permission: 'categories.view' },
|
||||
{ title: 'Brands', href: '/catalogue/brands', icon: BarCode01Icon, description: 'Brands associated with catalogue items', permission: 'categories.view' },
|
||||
// { title: 'UOMs', href: '/catalogue/uoms', icon: Layers01Icon, description: 'Units of measure and conversion factors between units', permission: 'categories.view' },
|
||||
@@ -162,5 +170,5 @@ export const BOTTOM_NAV_CANDIDATES: NavItem[] = [
|
||||
{ title: 'Rides', href: '/operations/rides', icon: TruckIcon, permission: 'rides.view' },
|
||||
{ title: 'Loading', href: '/operations/loading', icon: DeliveryBox01Icon, permission: 'loading.view' },
|
||||
{ title: 'Shop POs', href: '/sales', icon: ClipboardListIcon, permission: 'orders.view' },
|
||||
{ title: 'Items', href: '/catalogue/items', icon: Package01Icon, permission: 'items.view' },
|
||||
{ title: 'Products', href: '/catalogue/items', icon: Package01Icon, permission: 'items.view' },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user