From a790150536056ec67cf1b9f2c12eca969cbfd438 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Thu, 14 Nov 2024 19:51:34 +0200 Subject: [PATCH] Add UserIcon and selectedDate select to nav in layout --- src/routes/+layout.svelte | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index d4caf01..f89ac51 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -3,13 +3,9 @@ let { children } = $props(); import { page } from '$app/stores'; const currentPath = $derived($page.url.pathname); - // import { goto } from '$app/navigation'; + import {selectedDate} from "$lib/stores/dateStore" + import UserIcon from '$lib/icons/UserIcon.svelte'; - // $effect(()=>{ - // if (!isAuthenticated && $page.url.pathname != "/login"){ - // // goto("/login") - // } - // }); const paths = [ { Path: "/ping", @@ -41,16 +37,25 @@ {#if $page.url.pathname != "/login"} {/if}