Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
4bc61416cb
commit
2bed7dc0c7
@@ -42,9 +42,7 @@ interface NavItem {
|
||||
|
||||
const NAV: NavItem[] = (() => {
|
||||
const dashboard: NavItem = { to: "/", label: "Dashboard", icon: LayoutDashboard };
|
||||
const rest: NavItem[] = [
|
||||
{ to: "/admin/users", label: "Users", icon: ShieldCheck, adminOnly: true },
|
||||
{ to: "/archive", label: "Archive", icon: ArchiveIcon },
|
||||
const main: NavItem[] = [
|
||||
{ to: "/calendar", label: "Calendar", icon: CalendarIcon },
|
||||
{ to: "/cases", label: "Cases", icon: Briefcase },
|
||||
{ to: "/clients", label: "Clients", icon: Users },
|
||||
@@ -57,11 +55,15 @@ const NAV: NavItem[] = (() => {
|
||||
{ to: "/messages", label: "Messages", icon: MessageSquare },
|
||||
{ to: "/payments", label: "Payments", icon: CreditCard },
|
||||
{ to: "/documents", label: "Pleadings", icon: FolderOpen },
|
||||
{ to: "/settings", label: "Settings", icon: SettingsIcon },
|
||||
{ to: "/status", label: "Status Updates", icon: Activity },
|
||||
{ to: "/tasks", label: "Tasks", icon: CheckSquare },
|
||||
].sort((a, b) => a.label.localeCompare(b.label));
|
||||
return [dashboard, ...rest];
|
||||
const bottom: NavItem[] = [
|
||||
{ to: "/archive", label: "Archive", icon: ArchiveIcon },
|
||||
{ to: "/settings", label: "Settings", icon: SettingsIcon },
|
||||
{ to: "/admin/users", label: "Users", icon: ShieldCheck, adminOnly: true },
|
||||
];
|
||||
return [dashboard, ...main, ...bottom];
|
||||
})();
|
||||
void FileText;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user