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/ActiveChannel.svelte | 62 +++++++++++++++++-----------------
 1 file changed, 31 insertions(+), 31 deletions(-)

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

diff --git a/ui/lib/components/ActiveChannel.svelte b/ui/lib/components/ActiveChannel.svelte
index 76bf13a..212048a 100644
--- a/ui/lib/components/ActiveChannel.svelte
+++ b/ui/lib/components/ActiveChannel.svelte
@@ -1,42 +1,42 @@
 <script>
-    import { messages } from '$lib/store';
-    import MessageRun from './MessageRun.svelte';
+	import { messages } from '$lib/store';
+	import MessageRun from './MessageRun.svelte';
 
-    export let channel = null;
-    $: messageList = channel !== null ? $messages.inChannel(channel) : [];
+	export let channel = null;
+	$: messageList = channel !== null ? $messages.inChannel(channel) : [];
 
-    function *chunkBy(xs, fn) {
-        let chunk;
-        let key;
-        for (let x of xs) {
-            let newKey = fn(x);
-            if (key !== newKey) {
-                if (chunk !== undefined) {
-                    yield [key, chunk];
-                }
+	function* chunkBy(xs, fn) {
+		let chunk;
+		let key;
+		for (let x of xs) {
+			let newKey = fn(x);
+			if (key !== newKey) {
+				if (chunk !== undefined) {
+					yield [key, chunk];
+				}
 
-                chunk = [x];
-                key = newKey;
-            } else {
-                chunk.push(x);
-            }
-        }
-        if (chunk !== undefined) {
-            yield [key, chunk];
-        }
-    }
+				chunk = [x];
+				key = newKey;
+			} else {
+				chunk.push(x);
+			}
+		}
+		if (chunk !== undefined) {
+			yield [key, chunk];
+		}
+	}
 </script>
 
 <div class="container">
-    {#each chunkBy(messageList, msg => msg.sender) as [sender, messages]}
-        <div>
-            <MessageRun {sender} {messages} />
-        </div>
-    {/each}
+	{#each chunkBy(messageList, (msg) => msg.sender) as [sender, messages]}
+		<div>
+			<MessageRun {sender} {messages} />
+		</div>
+	{/each}
 </div>
 
 <style>
-    .container {
-        overflow: auto;
-    }
+	.container {
+		overflow: auto;
+	}
 </style>
-- 
cgit v1.2.3

