From 3ab2918ed2d1ebc5d0cb3cbbc709c66ca438e32c Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Fri, 5 Apr 2024 22:17:20 +0000 Subject: [PATCH] Add user name to Navbar component --- src/lib/components/Navbar.svelte | 4 ++++ src/routes/+layout.svelte | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index f1b0785..b11e28e 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -2,6 +2,7 @@ import { visitCount } from "$lib/utils/stores/visitCountStore"; import { goto } from "$app/navigation"; import type { DatabaseUser } from "$lib/server/auth"; + export let user: any; async function goHome() { goto("/"); } @@ -47,5 +48,8 @@ diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 1d600fe..cfa6854 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,12 +1,12 @@ - +