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 */}