From abb42a7046a0106941a6c39a9ac2796000bc5282 Mon Sep 17 00:00:00 2001 From: Madhura68 Date: Sun, 26 Apr 2026 17:49:25 +0200 Subject: [PATCH] feat: fix nav link order to Producten, Sprint, Solo, Todo's Co-Authored-By: Claude Sonnet 4.6 --- components/shared/nav-bar.tsx | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/components/shared/nav-bar.tsx b/components/shared/nav-bar.tsx index e6db444..7d90886 100644 --- a/components/shared/nav-bar.tsx +++ b/components/shared/nav-bar.tsx @@ -26,9 +26,10 @@ export function NavBar({ isDemo, roles }: NavBarProps) { const productId = productMatch ? productMatch[1] : null const navLinks = [ - { href: '/dashboard', label: 'Producten', active: pathname.startsWith('/dashboard') || pathname.startsWith('/products') && !pathname.includes('/solo') }, - { href: '/solo', label: 'Solo', active: pathname.includes('/solo') }, - { href: '/todos', label: "Todo's", active: pathname.startsWith('/todos') }, + { href: '/dashboard', label: 'Producten', active: pathname.startsWith('/dashboard') || (pathname.startsWith('/products') && !pathname.includes('/solo')), show: true }, + { href: productId ? `/products/${productId}/sprint` : '/dashboard', label: 'Sprint', active: pathname.includes('/sprint'), show: !!productId }, + { href: '/solo', label: 'Solo', active: pathname.includes('/solo'), show: true }, + { href: '/todos', label: "Todo's", active: pathname.startsWith('/todos'), show: true }, ] return ( @@ -46,9 +47,9 @@ export function NavBar({ isDemo, roles }: NavBarProps) { {/* Nav links */} {/* Rechts: rollen + instellingen + uitloggen */}