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/components/RemovePageButton.svelte | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'frontend/src/lib/components/RemovePageButton.svelte')

diff --git a/frontend/src/lib/components/RemovePageButton.svelte b/frontend/src/lib/components/RemovePageButton.svelte
index e23c079..8045f32 100644
--- a/frontend/src/lib/components/RemovePageButton.svelte
+++ b/frontend/src/lib/components/RemovePageButton.svelte
@@ -1,13 +1,17 @@
 <script lang="ts">
 	import { accelerator } from '$lib/Shortcuts';
+	import type { MouseEventHandler } from 'svelte/elements';
+
+	let { onclick }: { onclick: MouseEventHandler<HTMLButtonElement> } = $props();
 </script>
 
 <button
 	type="button"
 	class="btn-rose"
 	title="Remove selected pages"
-	on:click
+	aria-label="Remove selected pages"
+	{onclick}
 	use:accelerator={'Delete'}
 >
-	<span class="icon-base icon-[material-symbols--scan-delete]" />
+	<span class="icon-base icon-[material-symbols--scan-delete]"></span>
 </button>
-- 
cgit v1.2.3-2-gb3c3

