This commit is contained in:
gpt-engineer-app[bot]
2025-12-19 14:43:28 +00:00
parent 04a140b305
commit b63da103cd
8 changed files with 265 additions and 35 deletions

View File

@@ -20,6 +20,7 @@ import {
Home,
MoreHorizontal,
X,
Video,
} from 'lucide-react';
interface NavItem {
@@ -40,6 +41,7 @@ const adminNavItems: NavItem[] = [
{ label: 'Dashboard', href: '/admin', icon: LayoutDashboard },
{ label: 'Produk', href: '/admin/products', icon: Package },
{ label: 'Bootcamp', href: '/admin/bootcamp', icon: BookOpen },
{ label: 'Konsultasi', href: '/admin/consulting', icon: Video },
{ label: 'Order', href: '/admin/orders', icon: Receipt },
{ label: 'Member', href: '/admin/members', icon: Users },
{ label: 'Kalender', href: '/admin/events', icon: Calendar },
@@ -152,15 +154,17 @@ export function AppLayout({ children }: AppLayoutProps) {
</nav>
<div className="p-4 border-t-2 border-border space-y-2">
<Link to="/checkout" className="flex items-center gap-3 px-3 py-2 hover:bg-muted text-sm font-medium">
<ShoppingCart className="w-5 h-5" />
Keranjang
{items.length > 0 && (
<span className="ml-auto bg-primary text-primary-foreground text-xs px-2 py-0.5">
{items.length}
</span>
)}
</Link>
{!isAdmin && (
<Link to="/checkout" className="flex items-center gap-3 px-3 py-2 hover:bg-muted text-sm font-medium">
<ShoppingCart className="w-5 h-5" />
Keranjang
{items.length > 0 && (
<span className="ml-auto bg-primary text-primary-foreground text-xs px-2 py-0.5">
{items.length}
</span>
)}
</Link>
)}
<button
onClick={handleSignOut}
className="flex items-center gap-3 px-3 py-2 hover:bg-muted text-sm font-medium w-full text-left"