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/CreateChannelForm.svelte | 34 ++++++++++++++++++------------
 1 file changed, 20 insertions(+), 14 deletions(-)

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

diff --git a/ui/lib/components/CreateChannelForm.svelte b/ui/lib/components/CreateChannelForm.svelte
index b716736..6b50fb1 100644
--- a/ui/lib/components/CreateChannelForm.svelte
+++ b/ui/lib/components/CreateChannelForm.svelte
@@ -1,23 +1,29 @@
 <script>
-    import { createChannel } from '$lib/apiServer';
+	import { createChannel } from '$lib/apiServer';
 
-    let name = "";
-    let pending = false;
-    $: disabled = pending;
+	let name = '';
+	let pending = false;
+	$: disabled = pending;
 
-    async function handleSubmit(event) {
-        pending = true;
-        const response = await createChannel(name);
-        if (200 <= response.status && response.status < 300) {
-            name = '';
-        }
-        pending = false;
-    }
+	async function handleSubmit(event) {
+		pending = true;
+		const response = await createChannel(name);
+		if (200 <= response.status && response.status < 300) {
+			name = '';
+		}
+		pending = false;
+	}
 </script>
 
 <form on:submit|preventDefault={handleSubmit} class="form form-row flex-nowrap">
-    <input type="text" placeholder="create channel" bind:value={name} disabled={disabled} class="input flex-auto h-6 w-9/12" />
-    <button type="submit" class="flex-none w-6 h-6">&#x2795;</button>
+	<input
+		type="text"
+		placeholder="create channel"
+		bind:value={name}
+		{disabled}
+		class="input flex-auto h-6 w-9/12"
+	/>
+	<button type="submit" class="flex-none w-6 h-6">&#x2795;</button>
 </form>
 
 <style>
-- 
cgit v1.2.3

