summaryrefslogtreecommitdiff
path: root/ui/routes/(app)/+layout.svelte
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-11-03 15:33:43 -0500
committerOwen Jacobson <owen@grimoire.ca>2024-11-03 15:33:43 -0500
commit30fa0c4c1faece6b054105fe3cce5107f24a2fa2 (patch)
tree6b66eec84a702103f368f6a5ba0e96736fc56fd6 /ui/routes/(app)/+layout.svelte
parentf2285a52822fbd1d82a24fe3b51c4343dc9e9ae6 (diff)
Svelte 5: go through and use runes in components, pages, and layouts.
Does not use runes in stores (yet).
Diffstat (limited to 'ui/routes/(app)/+layout.svelte')
-rw-r--r--ui/routes/(app)/+layout.svelte6
1 files changed, 3 insertions, 3 deletions
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 />