add mandatory href for tabs in header component

Signed-off-by: Sofia Sjöblad <ssjoblad@spotify.com>
This commit is contained in:
Sofia Sjöblad
2025-10-07 10:35:01 +02:00
parent 8bfe82fbc6
commit ea3970a51d
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ export interface HeaderProps {
export interface HeaderTab {
id: string;
label: string;
href?: string;
href: string;
/**
* Strategy for matching the current route to determine if this tab should be active.
* - 'exact': Tab href must exactly match the current pathname (default)
@@ -44,22 +44,27 @@ const tabs: HeaderTab[] = [
{
id: 'overview',
label: 'Overview',
href: '/overview',
},
{
id: 'checks',
label: 'Checks',
href: '/checks',
},
{
id: 'tracks',
label: 'Tracks',
href: '/tracks',
},
{
id: 'campaigns',
label: 'Campaigns',
href: '/campaigns',
},
{
id: 'integrations',
label: 'Integrations',
href: '/integrations',
},
];