fix: remaining headers

This commit is contained in:
Torsten Dittmann committed 2022-10-28 11:40:35 +02:00
1 parent d998a3f390
commit 5e79744cd4
2 files changed
+8 -4

No files matched your search

@@ -2,6 +2,7 @@
import { page } from '$app/stores';
import { Copy, Tab, Tabs } from '$lib/components';
import { Pill } from '$lib/elements';
import { isTabSelected } from '$lib/helpers/load';
import { Cover, CoverTitle } from '$lib/layout';
import { team } from './store';
@@ -15,11 +16,13 @@
},
{
href: `${path}/members`,
title: 'Members'
title: 'Members',
hasChildren: true
},
{
href: `${path}/activity`,
title: 'Activity'
title: 'Activity',
hasChildren: true
}
];
</script>
@@ -39,7 +42,7 @@
<Tabs>
{#each tabs as tab}
<Tab href={tab.href} selected={$page.url.pathname === tab.href}>
<Tab href={tab.href} selected={isTabSelected(tab, $page.url.pathname, path, tabs)}>
{tab.title}
</Tab>
{/each}
@@ -1,6 +1,7 @@
<script lang="ts">
import { page } from '$app/stores';
import { Tab, Tabs } from '$lib/components';
import { isTabSelected } from '$lib/helpers/load';
import { Cover } from '$lib/layout';
const projectId = $page.params.project;
@@ -30,7 +31,7 @@
<Tabs>
{#each tabs as tab}
<Tab href={tab.href} selected={$page.url.pathname === tab.href}>
<Tab href={tab.href} selected={isTabSelected(tab, $page.url.pathname, path, tabs)}>
{tab.title}
</Tab>
{/each}