diff --git a/src/app.d.ts b/src/app.d.ts index 9c013f3..8189cff 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -1,18 +1,8 @@ -// See https://kit.svelte.dev/docs/types#app -// for information about these interfaces declare global { namespace App { - // interface Error {} - // interface Locals {} interface Locals { user: User } - // interface PageData { - // theme: Theme - // } - // interface PageData {} - // interface PageState {} - // interface Platform {} } } diff --git a/src/lib/components/ThemePicker.svelte b/src/lib/components/ThemePicker.svelte index e1529da..6287fdc 100644 --- a/src/lib/components/ThemePicker.svelte +++ b/src/lib/components/ThemePicker.svelte @@ -20,10 +20,8 @@ } } - let icon = $derived.by(() => { - if (theme === "light") return "light" - if (theme === "dark") return "dark" - }) + // let icon = $derived.by(() => theme) + let icon = $derived(theme) {#key theme} diff --git a/src/lib/index.ts b/src/lib/index.ts index 3a86cfd..1ad9820 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,4 +1,3 @@ -// place files you want to import through the `$lib` alias in this folder. export type User = { username: string } diff --git a/src/routes/(auth)/login/+page.svelte b/src/routes/(auth)/login/+page.svelte index 3dd292e..237e77f 100644 --- a/src/routes/(auth)/login/+page.svelte +++ b/src/routes/(auth)/login/+page.svelte @@ -1,11 +1,9 @@ -