diff options
| author | Adam Soltys <[email protected]> | 2022-07-29 23:49:52 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-07-29 23:49:52 -0700 |
| commit | fac00131fd980db9513143807fe2d823376e9551 (patch) | |
| tree | 26962b9a17f7c9fd3ae9970f9161c22a42170e5c /src/components/AppHeader.svelte | |
| parent | ceb96cc9c5b627ee0e0df76232f8c921778ddc0e (diff) | |
| download | coinos-ui-fac00131fd980db9513143807fe2d823376e9551.tar.gz coinos-ui-fac00131fd980db9513143807fe2d823376e9551.zip | |
show username in header
Diffstat (limited to 'src/components/AppHeader.svelte')
| -rw-r--r-- | src/components/AppHeader.svelte | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index bbe2e05e..3f8e7e87 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -1,6 +1,7 @@ <script> // we will want to dynamically use the users avatar on this screen if they have uploaded one + import { user } from "$lib/store"; import { goto } from '$app/navigation'; import { Icon } from '$comp'; </script> @@ -14,7 +15,7 @@ ><Icon icon="clock" style="mx-auto" /></button > <button class="bg-white p-2 rounded-full w-12 h-12" - ><Icon icon="profile" style="mx-auto" /></button + ><Icon icon="profile" style="mx-auto" /> {$user.username}</button > <button class="bg-white p-2 rounded-full w-12 h-12" ><Icon icon="menu" style="mx-auto" /></button |
