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/tabs/ComicDelete.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'frontend/src/lib/tabs/ComicDelete.svelte')

diff --git a/frontend/src/lib/tabs/ComicDelete.svelte b/frontend/src/lib/tabs/ComicDelete.svelte
index a10f6b2..3ae924c 100644
--- a/frontend/src/lib/tabs/ComicDelete.svelte
+++ b/frontend/src/lib/tabs/ComicDelete.svelte
@@ -9,9 +9,9 @@
 
 	const client = getContextClient();
 
-	export let comic: FullComicFragment;
+	let { comic }: { comic: FullComicFragment } = $props();
 
-	function deleteComic() {
+	function onclick() {
 		confirmDeletion('Comic', comic.title, () => {
 			deleteComics(client, { ids: comic.id })
 				.then(() => goto('/comics/'))
@@ -29,6 +29,6 @@
 		<p class="mt-2 font-medium">This action is irrevocable.</p>
 	</div>
 	<div class="flex">
-		<DeleteButton prominent on:click={deleteComic} />
+		<DeleteButton prominent {onclick} />
 	</div>
 </div>
-- 
cgit v1.2.3-2-gb3c3

