feat: add tabs

This commit is contained in:
Arman
2022-06-07 14:28:17 +02:00
parent 0e5331fa3b
commit bc641cd026
@@ -5,7 +5,7 @@
import { team } from './store';
const teamId = $page.params.team;
// const path = `users/teams/${projectId}`;
const path = `users/teams/${teamId}`;
$: {
if (browser) {
@@ -21,10 +21,26 @@
// title.set('Teams');
tabs.set([]);
tabs.set([
{
href: path,
title: 'Overview'
},
{
href: `${path}/members`,
title: 'Members'
},
{
href: `${path}/activity`,
title: 'Activity'
}
]);
</script>
<svelte:head>
<title>Appwrite - Team</title>
</svelte:head>
<slot />
{#if $team}
<slot />
{/if}