From 30fa0c4c1faece6b054105fe3cce5107f24a2fa2 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Sun, 3 Nov 2024 15:33:43 -0500
Subject: Svelte 5: go through and use runes in components, pages, and layouts.

Does not use runes in stores (yet).
---
 ui/lib/components/ActiveChannel.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

diff --git a/ui/lib/components/ActiveChannel.svelte b/ui/lib/components/ActiveChannel.svelte
index 212048a..ac1a0b9 100644
--- a/ui/lib/components/ActiveChannel.svelte
+++ b/ui/lib/components/ActiveChannel.svelte
@@ -2,8 +2,8 @@
 	import { messages } from '$lib/store';
 	import MessageRun from './MessageRun.svelte';
 
-	export let channel = null;
-	$: messageList = channel !== null ? $messages.inChannel(channel) : [];
+	let { channel } = $props();
+	let messageList = $derived(channel !== null ? $messages.inChannel(channel) : []);
 
 	function* chunkBy(xs, fn) {
 		let chunk;
-- 
cgit v1.2.3

