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 | b1799e32984a7f56bb397af4a690f9b4de08e5f8 (patch) | |
| tree | fd8a25aa8de0a8196990aecb4a6a01342b07c25e /src/components/AppHeader.svelte | |
| parent | faa3649113d3d1766c419ed62640571c1db9e209 (diff) | |
| download | coinos-ui-b1799e32984a7f56bb397af4a690f9b4de08e5f8.tar.gz coinos-ui-b1799e32984a7f56bb397af4a690f9b4de08e5f8.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 |
