From dc4db405d2991d3ec6a114f3b08d3fccd057d3ee Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 13 Feb 2025 17:52:16 +0100
Subject: frontend: Migrate to Svelte 5

---
 frontend/src/lib/icons/Star.svelte | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

(limited to 'frontend/src/lib/icons/Star.svelte')

diff --git a/frontend/src/lib/icons/Star.svelte b/frontend/src/lib/icons/Star.svelte
index 7613c55..bd8af67 100644
--- a/frontend/src/lib/icons/Star.svelte
+++ b/frontend/src/lib/icons/Star.svelte
@@ -1,17 +1,22 @@
 <script lang="ts">
-	export let large = false;
-	export let favourite: boolean | undefined = undefined;
-	export let hoverable = false;
+	interface Props {
+		large?: boolean;
+		favourite?: boolean;
+		hoverable?: boolean;
+	}
+
+	let { large = false, favourite, hoverable = false }: Props = $props();
 </script>
 
 {#if favourite}
-	<span class:hoverable class:large class="icon-yellow icon-[material-symbols--star-rounded]" />
+	<span class:hoverable class:large class="icon-yellow icon-[material-symbols--star-rounded]"
+	></span>
 {:else}
 	<span
 		class:hoverable
 		class:large
 		class="icon-yellow dim icon-[material-symbols--star-outline-rounded]"
-	/>
+	></span>
 {/if}
 
 <style lang="postcss">
-- 
cgit v1.2.3-2-gb3c3

