diff options
| author | Adrien Hopkins <[email protected]> | 2022-07-29 15:54:30 -0500 |
|---|---|---|
| committer | Adrien Hopkins <[email protected]> | 2022-07-29 15:54:30 -0500 |
| commit | 0eb0e93e24ad553c01ea30851f64efa0b390afd3 (patch) | |
| tree | 7317951e50a7fbac7ae89db165e824c418720fe1 /src/components/AppHeader.svelte | |
| parent | 5535adee8c980ed142d6d3e3178df04e6f51eb4d (diff) | |
| download | coinos-ui-0eb0e93e24ad553c01ea30851f64efa0b390afd3.tar.gz coinos-ui-0eb0e93e24ad553c01ea30851f64efa0b390afd3.zip | |
made the locale selector its own component
Diffstat (limited to 'src/components/AppHeader.svelte')
| -rw-r--r-- | src/components/AppHeader.svelte | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index d329dff5..249e2826 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -2,18 +2,14 @@ // we will want to dynamically use the users avatar on this screen if they have uploaded one import { goto } from '$app/navigation'; - import { Icon } from '$comp'; + import { Icon, LocaleSelector } from '$comp'; import { locale, locales } from 'svelte-i18n'; </script> <header class="bg-gradient-to-r from-primary to-gradient h-[20vh] w-full relative"> <nav class="flex justify-end items-center space-x-4 p-5"> - <select bind:value={$locale}> - {#each $locales as locale} - <option value={locale}>{locale}</option> - {/each} - </select> + <LocaleSelector /> <button class="bg-white p-2 rounded-full w-12 h-12" on:click={() => goto('/receive')} ><Icon icon="numpad" style="mx-auto" /></button |
