From 39b677404558ae3b7eb34e818d7ca308f62f9cb0 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 28 Oct 2024 15:32:46 -0700
Subject: feat: update to svelte 5

---
 src/lib/Hololive/Stream.svelte | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

(limited to 'src/lib/Hololive/Stream.svelte')

diff --git a/src/lib/Hololive/Stream.svelte b/src/lib/Hololive/Stream.svelte
index 12681acb..9f2b5e7b 100644
--- a/src/lib/Hololive/Stream.svelte
+++ b/src/lib/Hololive/Stream.svelte
@@ -5,10 +5,19 @@
   import locale from '$stores/locale';
   import Icon from '@iconify/svelte';
 
-  export let live: any;
-  export let pinStream: (streamer: string) => void;
-  export let pinnedStreams: string[];
-  export let icon: string;
+  interface Props {
+    live: any;
+    pinStream: (streamer: string) => void;
+    pinnedStreams: string[];
+    icon: string;
+  }
+
+  let {
+    live,
+    pinStream,
+    pinnedStreams,
+    icon
+  }: Props = $props();
 </script>
 
 <div class="stream card">
@@ -16,7 +25,7 @@
     <div class="pin-icon">
       <a
         href={'#'}
-        on:click={(e) => {
+        onclick={(e) => {
           e.preventDefault();
           pinStream(live.streamer);
         }}
-- 
cgit v1.2.3

