From bd53a51af835478d23bef4772ce7e50553dc3fdf Mon Sep 17 00:00:00 2001
From: Kit La Touche <kit@transneptune.net>
Date: Wed, 9 Oct 2024 15:32:52 -0400
Subject: Move a lot of things around

---
 hi-ui/src/lib/LogOut.svelte | 22 ----------------------
 1 file changed, 22 deletions(-)
 delete mode 100644 hi-ui/src/lib/LogOut.svelte

(limited to 'hi-ui/src/lib/LogOut.svelte')

diff --git a/hi-ui/src/lib/LogOut.svelte b/hi-ui/src/lib/LogOut.svelte
deleted file mode 100644
index 0f0bb13..0000000
--- a/hi-ui/src/lib/LogOut.svelte
+++ /dev/null
@@ -1,22 +0,0 @@
-<script>
-    import { logOut} from '../apiServer';
-    import { currentUser } from '../store';
-
-    async function handleLogout(event) {
-        const response = await logOut();
-        if (200 <= response.status && response.status < 300) {
-            currentUser.update(() => null);
-        }
-    }
-</script>
-
-<form on:submit|preventDefault={handleLogout}>
-    @{$currentUser.username}
-    <button
-        class="border-slate-500 border-solid border-2 font-bold p-1 rounded"
-        type="submit"
-    >log out</button>
-</form>
-
-<style>
-</style>
-- 
cgit v1.2.3

