Reordered sidebar menu items

X-Lovable-Edit-ID: edt-07dcb485-f132-4485-8896-f7539fdff629
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 17:58:41 +00:00
co-authored by renee-png
+7 -5
View File
@@ -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;