Refactor navigation structure and API routes
- Centralize user menu, sidebar items, and breadcrumb logic. - Map consistent API endpoints in `customerRoutes`. - Replace inline route definitions with reusable constants. - Refactor auth configuration file location. - Improve `<Link>` usage to replace static `<a>` elements. - Adjust sidebar and dropdown components to use dynamic navigation configurations.
This commit is contained in:
12
internal_frontend/types/navigation/sidebar.ts
Normal file
12
internal_frontend/types/navigation/sidebar.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import {LucideIcon} from "lucide-react";
|
||||
|
||||
export interface MenuItem {
|
||||
title: string;
|
||||
url: string;
|
||||
icon: LucideIcon;
|
||||
}
|
||||
|
||||
export interface SubMenuItem {
|
||||
title: string;
|
||||
url: string;
|
||||
}
|
||||
Reference in New Issue
Block a user