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/List/Anime/CompletedAnimeList.svelte | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

(limited to 'src/lib/List/Anime/CompletedAnimeList.svelte')

diff --git a/src/lib/List/Anime/CompletedAnimeList.svelte b/src/lib/List/Anime/CompletedAnimeList.svelte
index 76ec7207..a8cb6fd1 100644
--- a/src/lib/List/Anime/CompletedAnimeList.svelte
+++ b/src/lib/List/Anime/CompletedAnimeList.svelte
@@ -11,18 +11,22 @@
   import identity from '$stores/identity';
   import sampleAnime from '$lib/Data/Static/SampleMedia/anime.json';
 
-  export let user: AniListAuthorisation = {
+  interface Props {
+    user?: AniListAuthorisation;
+    dummy?: boolean;
+  }
+
+  let { user = {
     accessToken: '',
     refreshToken: '',
     expiresIn: 0,
     tokenType: ''
-  };
-  export let dummy = false;
+  }, dummy = false }: Props = $props();
 
   const { addNotification } = getNotificationsContext();
-  let animeLists: Promise<Media[]>;
+  let animeLists: Promise<Media[]> = $state();
   let startTime: number;
-  let endTime: number;
+  let endTime: number = $state();
 
   onMount(async () => {
     startTime = performance.now();
-- 
cgit v1.2.3

