From 81b3efc4001dd27e5b76736effc4cb729d6ef98c Mon Sep 17 00:00:00 2001 From: Madhura68 Date: Fri, 8 May 2026 01:14:15 +0200 Subject: [PATCH] refactor: centreer sprint-switcher en verwijder badges uit dropdown items Co-Authored-By: Claude Opus 4.7 (1M context) --- app/(app)/products/[id]/page.tsx | 9 +++++---- components/shared/sprint-switcher.tsx | 13 +------------ 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/app/(app)/products/[id]/page.tsx b/app/(app)/products/[id]/page.tsx index d81c678..3ce0e49 100644 --- a/app/(app)/products/[id]/page.tsx +++ b/app/(app)/products/[id]/page.tsx @@ -127,9 +127,10 @@ export default async function ProductBacklogPage({ params, searchParams }: Props return (
- {/* Product header — sprint-switcher links, actions rechts */} -
-
+ {/* Product header — sprint-switcher gecentreerd, actions rechts */} +
+
+
{isActiveProduct && ( )}
-
+
{!isActiveProduct && ( )} diff --git a/components/shared/sprint-switcher.tsx b/components/shared/sprint-switcher.tsx index 1419a51..b240af1 100644 --- a/components/shared/sprint-switcher.tsx +++ b/components/shared/sprint-switcher.tsx @@ -105,27 +105,16 @@ export function SprintSwitcher({ )} - + {sprints.map(s => ( handleSwitchSprint(s.id)} className={cn( - 'flex items-center justify-between gap-2', s.id === activeSprint?.id && 'bg-primary-container text-primary-container-foreground font-medium', )} > {s.code} - - {buildingSet.has(s.id) ? 'BUILDING' : SPRINT_STATUS_LABEL[s.status]} - ))}