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/MessageRun.svelte | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

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

diff --git a/ui/lib/components/MessageRun.svelte b/ui/lib/components/MessageRun.svelte
index 4894885..23c2186 100644
--- a/ui/lib/components/MessageRun.svelte
+++ b/ui/lib/components/MessageRun.svelte
@@ -2,12 +2,10 @@
 	import { logins, currentUser } from '$lib/store';
 	import Message from '$lib/components/Message.svelte';
 
-	export let sender;
-	export let messages;
+	let { sender, messages } = $props();
 
-	let name;
-	$: name = $logins.get(sender);
-	$: ownMessage = $currentUser.id == sender;
+	let name = $derived($logins.get(sender));
+	let ownMessage = $derived($currentUser !== null && $currentUser.id == sender);
 </script>
 
 <div
-- 
cgit v1.2.3

