update sveltekit, migrate to $app/state

This commit is contained in:
sam 2024-12-17 23:33:05 +01:00
parent 80385893c7
commit 397ffc2d5e
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 141 additions and 141 deletions

View file

@ -1,13 +1,13 @@
<script lang="ts">
import type { Snippet } from "svelte";
import { page } from "$app/stores";
import { page } from "$app/state";
import { t } from "$lib/i18n";
import type { LayoutData } from "./$types";
type Props = { data: LayoutData; children: Snippet };
let { data, children }: Props = $props();
const isActive = (path: string) => $page.url.pathname === path;
const isActive = (path: string) => page.url.pathname === path;
let name = $derived(
data.member.display_name === data.member.name