diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 7717e7b..2787e23 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -9,10 +9,10 @@ import * as Sheet from '$lib/components/ui/sheet/index.js'; import { cn } from '$lib/utils/ui'; import HouseIcon from 'lucide-svelte/icons/house'; - import { page } from '$app/stores'; + import { page } from '$app/state'; import { enhance } from '$app/forms'; - let { children, data } = $props(); + const { children, data } = $props(); const routes = [ { @@ -40,7 +40,7 @@ href={route.href} class={cn( 'text-muted-foreground transition-colors hover:text-foreground', - $page.url.pathname === route.href && + page.url.pathname === route.href && 'text-foreground transition-colors hover:text-foreground' )} > @@ -49,8 +49,8 @@ {/each} - - @@ -66,7 +66,7 @@ href={route.href} class={cn( 'text-muted-foreground hover:text-foreground', - $page.url.pathname.startsWith(route.href) && 'hover:text-foreground' + page.url.pathname.startsWith(route.href) && 'hover:text-foreground' )} > {route.label} @@ -102,20 +102,22 @@ {#snippet userDropdown()} - - - Settings + + Settings +
-
+ +
{/snippet} diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 582b1c7..d905ccf 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -3,9 +3,11 @@ import { ModeWatcher } from 'mode-watcher'; import { Toaster } from "$lib/components/ui/sonner"; - let { children } = $props(); + const { children } = $props(); -{@render children()} +
+ {@render children?.()} +