From b892bd9fdba5fe9397f3c4432b3039aa961b7a14 Mon Sep 17 00:00:00 2001 From: Kit La Touche Date: Fri, 27 Sep 2024 23:08:56 -0400 Subject: Add lots of style and layout --- hi-ui/src/lib/LogOut.svelte | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'hi-ui/src/lib/LogOut.svelte') diff --git a/hi-ui/src/lib/LogOut.svelte b/hi-ui/src/lib/LogOut.svelte index 439a530..64d26c9 100644 --- a/hi-ui/src/lib/LogOut.svelte +++ b/hi-ui/src/lib/LogOut.svelte @@ -2,6 +2,12 @@ import { logOut} from '../apiServer'; import { currentUser } from '../store'; + let user; + + currentUser.subscribe((value) => { + user = value; + }); + async function handleLogout(event) { event.preventDefault(); const response = await logOut(); @@ -12,7 +18,11 @@
- + @{user.username} +