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/routes/(app)/+layout.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'ui/routes/(app)/+layout.svelte')

diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte
index 5d1023d..356a096 100644
--- a/ui/routes/(app)/+layout.svelte
+++ b/ui/routes/(app)/+layout.svelte
@@ -9,10 +9,10 @@
 	import ChannelList from '$lib/components/ChannelList.svelte';
 	import CreateChannelForm from '$lib/components/CreateChannelForm.svelte';
 
-	let loading = true;
 	let events = null;
 
-	$: channel = $page?.params?.channel;
+	let loading = $state(true);
+	let channel = $derived($page.params.channel);
 
 	function onBooted(boot) {
 		currentUser.update(() => ({
@@ -63,7 +63,7 @@
 	<div id="interface" class="p-2">
 		<nav id="sidebar" data-expanded={$showMenu}>
 			<div class="channel-list">
-				<ChannelList active={channel} />
+				<ChannelList active={channel} channels={$channelsList.channels} />
 			</div>
 			<div class="create-channel">
 				<CreateChannelForm />
-- 
cgit v1.2.3

