Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
748f25695d
commit
d41b2f8c5e
@@ -38,25 +38,28 @@ interface NavItem {
|
||||
adminOnly?: boolean;
|
||||
}
|
||||
|
||||
const NAV: NavItem[] = [
|
||||
{ to: "/admin/users", label: "Users", icon: ShieldCheck, adminOnly: true },
|
||||
{ to: "/calendar", label: "Calendar", icon: CalendarIcon },
|
||||
{ to: "/cases", label: "Cases", icon: Briefcase },
|
||||
{ to: "/clients", label: "Clients", icon: Users },
|
||||
{ to: "/collections", label: "Collections", icon: DollarSign },
|
||||
{ to: "/contacts", label: "Contacts", icon: UserPlus },
|
||||
{ to: "/", label: "Dashboard", icon: LayoutDashboard },
|
||||
{ to: "/files", label: "Files", icon: FilesIcon },
|
||||
{ to: "/forms", label: "Forms", icon: ClipboardList },
|
||||
{ to: "/inbox", label: "Inbox", icon: InboxIcon },
|
||||
{ to: "/invoices", label: "Invoices", icon: Receipt },
|
||||
{ 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));
|
||||
const NAV: NavItem[] = (() => {
|
||||
const dashboard: NavItem = { to: "/", label: "Dashboard", icon: LayoutDashboard };
|
||||
const rest: NavItem[] = [
|
||||
{ to: "/admin/users", label: "Users", icon: ShieldCheck, adminOnly: true },
|
||||
{ to: "/calendar", label: "Calendar", icon: CalendarIcon },
|
||||
{ to: "/cases", label: "Cases", icon: Briefcase },
|
||||
{ to: "/clients", label: "Clients", icon: Users },
|
||||
{ to: "/collections", label: "Collections", icon: DollarSign },
|
||||
{ to: "/contacts", label: "Contacts", icon: UserPlus },
|
||||
{ to: "/files", label: "Files", icon: FilesIcon },
|
||||
{ to: "/forms", label: "Forms", icon: ClipboardList },
|
||||
{ to: "/inbox", label: "Inbox", icon: InboxIcon },
|
||||
{ to: "/invoices", label: "Invoices", icon: Receipt },
|
||||
{ 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];
|
||||
})();
|
||||
void FileText;
|
||||
|
||||
export function AppShell({ children }: { children: ReactNode }) {
|
||||
|
||||
Reference in New Issue
Block a user