|
@@ -6,6 +6,7 @@
|
|
|
|
|
|
|
|
let {data, children} = $props();
|
|
let {data, children} = $props();
|
|
|
let notifications = getNotifications();
|
|
let notifications = getNotifications();
|
|
|
|
|
+ console.log(data.loggedIn);
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<svelte:head>
|
|
<svelte:head>
|
|
@@ -22,6 +23,8 @@
|
|
|
{#if data.loggedIn === false}
|
|
{#if data.loggedIn === false}
|
|
|
<a href="/login" class="button">Sign In</a>
|
|
<a href="/login" class="button">Sign In</a>
|
|
|
<a href="/register" class="button">Sign Up</a>
|
|
<a href="/register" class="button">Sign Up</a>
|
|
|
|
|
+ {:else}
|
|
|
|
|
+ <a href="dashboard" class="button">Dashboard</a>
|
|
|
{/if}
|
|
{/if}
|
|
|
{/if}
|
|
{/if}
|
|
|
|
|
|