aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(static)/+layout.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-03 16:37:51 -0800
committerAdam Soltys <[email protected]>2026-02-11 15:34:17 -0800
commita4c2b673ded38c31d869f93fdb8b0a656ff01c17 (patch)
tree8b143a6a54fc51a4fb686bb26ce586a8297849c5 /src/routes/(static)/+layout.svelte
parentf7d9ab99ccdfa5cce8e01f827da6fa1d5c5ce4d9 (diff)
downloadcoinos-ui-a4c2b673ded38c31d869f93fdb8b0a656ff01c17.tar.gz
coinos-ui-a4c2b673ded38c31d869f93fdb8b0a656ff01c17.zip
fix warnings
Diffstat (limited to 'src/routes/(static)/+layout.svelte')
-rw-r--r--src/routes/(static)/+layout.svelte8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/routes/(static)/+layout.svelte b/src/routes/(static)/+layout.svelte
index a0061a19..ff763126 100644
--- a/src/routes/(static)/+layout.svelte
+++ b/src/routes/(static)/+layout.svelte
@@ -1,6 +1,4 @@
<script>
- import { run } from 'svelte/legacy';
-
import Nostr from "$comp/Nostr.svelte";
import { SvelteToast } from "@zerodevx/svelte-toast";
import Footer from "$comp/Footer.svelte";
@@ -8,9 +6,9 @@
import { theme as themeStore } from "$lib/store";
let { data, children } = $props();
- let { theme } = $state(data);
- let { user } = $derived(data);
- run(() => {
+ let user = $derived(data.user);
+ let theme = $state();
+ $effect(() => {
theme = $themeStore;
});
</script>