diff options
Diffstat (limited to 'src/routes/(static)')
| -rw-r--r-- | src/routes/(static)/+layout.svelte | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/routes/(static)/+layout.svelte b/src/routes/(static)/+layout.svelte index f09852fb..c9bdc091 100644 --- a/src/routes/(static)/+layout.svelte +++ b/src/routes/(static)/+layout.svelte @@ -1,18 +1,20 @@ <script> import { SvelteToast } from "@zerodevx/svelte-toast"; import Footer from "$comp/Footer.svelte"; - import { theme } from "$lib/store"; import LandingHeader from "$comp/LandingHeader.svelte"; + import { theme as themeStore } from "$lib/store"; export let data; + let { theme } = data; $: ({ user } = data); + $: theme = $themeStore; </script> <SvelteToast options={{ reversed: true, intro: { y: 192 } }} /> <LandingHeader {user} /> <main class="container flex px-4 md:px-40 mx-auto min-h-[600px]" - data-theme={$theme} + data-theme={theme} > <slot /> </main> |
