From 22ce0549e20ee397cf5953bd6b7aafc752deaa28 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Sat, 2 Nov 2024 20:02:24 -0400
Subject: Run prettier, make lint part of pre-commit

---
 ui/lib/components/CurrentUser.svelte | 33 ++++++++++++++++-----------------
 1 file changed, 16 insertions(+), 17 deletions(-)

(limited to 'ui/lib/components/CurrentUser.svelte')

diff --git a/ui/lib/components/CurrentUser.svelte b/ui/lib/components/CurrentUser.svelte
index 4b1b974..97ff980 100644
--- a/ui/lib/components/CurrentUser.svelte
+++ b/ui/lib/components/CurrentUser.svelte
@@ -1,25 +1,24 @@
 <script>
-    import { goto } from '$app/navigation';
-    import { logOut} from '$lib/apiServer';
-    import { currentUser } from '$lib/store';
+	import { goto } from '$app/navigation';
+	import { logOut } from '$lib/apiServer';
+	import { currentUser } from '$lib/store';
 
-    async function handleLogout() {
-        const response = await logOut();
-        if (200 <= response.status && response.status < 300) {
-            currentUser.update(() => null);
-            goto('/login');
-        }
-    }
+	async function handleLogout() {
+		const response = await logOut();
+		if (200 <= response.status && response.status < 300) {
+			currentUser.update(() => null);
+			goto('/login');
+		}
+	}
 </script>
 
 <form on:submit|preventDefault={handleLogout}>
-    {#if $currentUser}
-        <a href="/me">@{$currentUser.username}</a>
-    {/if}
-    <button
-        class="border-slate-500 border-solid border-2 font-bold p-1 rounded"
-        type="submit"
-    >log out</button>
+	{#if $currentUser}
+		<a href="/me">@{$currentUser.username}</a>
+	{/if}
+	<button class="border-slate-500 border-solid border-2 font-bold p-1 rounded" type="submit"
+		>log out</button
+	>
 </form>
 
 <style>
-- 
cgit v1.2.3

