[dyad] Restored sidebar links and kept onLinkClick prop - wrote 1 file(s)

This commit is contained in:
[dyad] 2025-09-12 13:53:13 +02:00
parent d247272ba8
commit 33f2bb0765

View file

@ -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 {