From 33f2bb076592cf1a745655135a140a3d23824d73 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Fri, 12 Sep 2025 13:53:13 +0200 Subject: [PATCH] [dyad] Restored sidebar links and kept onLinkClick prop - wrote 1 file(s) --- src/components/SidebarNav.tsx | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/components/SidebarNav.tsx b/src/components/SidebarNav.tsx index b389edc..a216407 100644 --- a/src/components/SidebarNav.tsx +++ b/src/components/SidebarNav.tsx @@ -20,11 +20,51 @@ const navItems: NavItem[] = [ title: "Dashboard", icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.LayoutDashboard }))), }, + { + href: "/stock", + title: "Stock", + icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.Package }))), + }, + { + href: "/book-out", + title: "Book Out", + icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.LogOut }))), + }, + { + href: "/customers", + title: "Customers", + icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.Users }))), + }, { href: "/suppliers", title: "Suppliers", icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.Building2 }))), }, + { + href: "/purchase-orders", + title: "Purchase Orders", + icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.Receipt }))), + }, + { + href: "/reports", + title: "Reports", + icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.FileText }))), + }, + { + href: "/products", // Restored Products link + title: "Products", + icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.Box }))), + }, + { + href: "/orders", // Restored Orders link + title: "Orders", + icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.ShoppingCart }))), + }, + { + href: "/settings", + title: "Settings", + icon: React.lazy(() => import("lucide-react").then(mod => ({ default: mod.Settings }))), + }, ] interface SidebarNavProps {