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/routes/(login)/setup/+page.svelte | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

(limited to 'ui/routes/(login)/setup/+page.svelte')

diff --git a/ui/routes/(login)/setup/+page.svelte b/ui/routes/(login)/setup/+page.svelte
index a1974b8..2f098ef 100644
--- a/ui/routes/(login)/setup/+page.svelte
+++ b/ui/routes/(login)/setup/+page.svelte
@@ -1,23 +1,24 @@
 <script>
-    import { goto } from '$app/navigation';
-    import { setup } from '$lib/apiServer';
+	import { goto } from '$app/navigation';
+	import { setup } from '$lib/apiServer';
 
-    import LogIn from '$lib/components/LogIn.svelte';
+	import LogIn from '$lib/components/LogIn.svelte';
 
-    let username = "", password = "";
-    let pending = false;
-    $: disabled = pending;
+	let username = '',
+		password = '';
+	let pending = false;
+	$: disabled = pending;
 
-    async function onSubmit() {
-        pending = true;
-        const response = await setup(username, password);
-        if (200 <= response.status && response.status < 300) {
-            username = '';
-            password = '';
-            goto('/');
-        }
-        pending = false;
-    }
+	async function onSubmit() {
+		pending = true;
+		const response = await setup(username, password);
+		if (200 <= response.status && response.status < 300) {
+			username = '';
+			password = '';
+			goto('/');
+		}
+		pending = false;
+	}
 </script>
 
 <LogIn bind:disabled bind:username bind:password legend="set up" on:submit={onSubmit} />
-- 
cgit v1.2.3

