diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-11 06:56:55 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-11 06:56:55 +0200 |
| commit | afbe98090a90ae7770c3a319b8a30c1d23cfbbc3 (patch) | |
| tree | 3f5b0affeca983a84ca656113f0cc819b4c9ea3e /code/app/src/routes | |
| parent | 14ab0bda54354960c627c3e9912e6f41026c3b58 (diff) | |
| download | greatoffice-afbe98090a90ae7770c3a319b8a30c1d23cfbbc3.tar.xz greatoffice-afbe98090a90ae7770c3a319b8a30c1d23cfbbc3.zip | |
refactor: Only show LocaleSwitcher on public layout
Diffstat (limited to 'code/app/src/routes')
| -rw-r--r-- | code/app/src/routes/(main)/(public)/+layout.svelte | 6 | ||||
| -rw-r--r-- | code/app/src/routes/(main)/+layout.svelte | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/code/app/src/routes/(main)/(public)/+layout.svelte b/code/app/src/routes/(main)/(public)/+layout.svelte index 69c29c5..0f1940a 100644 --- a/code/app/src/routes/(main)/(public)/+layout.svelte +++ b/code/app/src/routes/(main)/(public)/+layout.svelte @@ -1,11 +1,11 @@ <script> + import { LocaleSwitcher } from "$lib/components"; import LL from "$lib/i18n/i18n-svelte"; </script> +<LocaleSwitcher /> <slot /> -<footer - class="grid sm:gap-5 grid-flow-row sm:justify-center px-2 sm:grid-flow-col" -> +<footer class="grid sm:gap-5 grid-flow-row sm:justify-center px-2 sm:grid-flow-col"> <a href="https://greatoffice.life/privacy" class="link"> {$LL.privacyPolicy()} </a> diff --git a/code/app/src/routes/(main)/+layout.svelte b/code/app/src/routes/(main)/+layout.svelte index 1a870bb..7d4ce05 100644 --- a/code/app/src/routes/(main)/+layout.svelte +++ b/code/app/src/routes/(main)/+layout.svelte @@ -1,7 +1,6 @@ <script lang="ts"> import "../../app.pcss"; import { setLocale } from "$lib/i18n/i18n-svelte"; - import LocaleSwitcher from "$lib/components/locale-switcher.svelte"; import { ExclamationTriangleIcon } from "$lib/components/icons"; import type { LayoutData } from "./$types"; @@ -25,5 +24,4 @@ </div> {/if} -<LocaleSwitcher /> <slot /> |
