aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/AppHeader.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-07-29 23:49:52 -0700
committerAdam Soltys <[email protected]>2022-07-29 23:49:52 -0700
commitfac00131fd980db9513143807fe2d823376e9551 (patch)
tree26962b9a17f7c9fd3ae9970f9161c22a42170e5c /src/components/AppHeader.svelte
parentceb96cc9c5b627ee0e0df76232f8c921778ddc0e (diff)
downloadcoinos-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.svelte3
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