From 2544de46eed6fd9493eff6e2d41a8aa5d169bf51 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Mon, 4 Nov 2024 01:10:05 -0500
Subject: Retire use of <slot />

---
 ui/routes/(app)/+layout.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte
index 94e4509..ae3dc6a 100644
--- a/ui/routes/(app)/+layout.svelte
+++ b/ui/routes/(app)/+layout.svelte
@@ -11,6 +11,7 @@
 
   let events = null;
 
+  let { children } = $props();
   let loading = $state(true);
   let channel = $derived($page.params.channel);
 
@@ -70,7 +71,7 @@
       </div>
     </nav>
     <main>
-      <slot />
+      {@render children?.()}
     </main>
   </div>
 {/if}
-- 
cgit v1.2.3

