From bccb69f370a63d95099dcc5054ac10ca09ac8c84 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Sun, 3 Nov 2024 09:43:38 -0500
Subject: Generalize menu-closing

---
 ui/lib/components/Channel.svelte | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

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

diff --git a/ui/lib/components/Channel.svelte b/ui/lib/components/Channel.svelte
index 60c9092..3dc5c87 100644
--- a/ui/lib/components/Channel.svelte
+++ b/ui/lib/components/Channel.svelte
@@ -1,17 +1,11 @@
 <script>
-	import { showMenu } from '$lib/store';
-
 	export let id;
 	export let name;
 	export let active = false;
-
-	function hideMenu() {
-		showMenu.update(() => false);
-	}
 </script>
 
 <li class="rounded-full" class:bg-slate-400={active}>
-	<a href="/ch/{id}" on:click={hideMenu}>
+	<a href="/ch/{id}">
 		<span class="badge bg-primary-500">#</span>
 		<span class="flex-auto">{name}</span>
 	</a>
-- 
cgit v1.2.3

