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

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

diff --git a/frontend/src/lib/components/AddButton.svelte b/frontend/src/lib/components/AddButton.svelte
index 9c0ab29..f07eafd 100644
--- a/frontend/src/lib/components/AddButton.svelte
+++ b/frontend/src/lib/components/AddButton.svelte
@@ -1,7 +1,7 @@
 <script lang="ts">
-	export let title: string;
+	let { title, onclick }: { title: string; onclick: () => void } = $props();
 </script>
 
-<button class="btn-blue" {title} on:click>
-	<span class="icon-base icon-[material-symbols--add]" />
+<button class="btn-blue" {title} aria-label={title} {onclick}>
+	<span class="icon-base icon-[material-symbols--add]"></span>
 </button>
-- 
cgit v1.2.3-2-gb3c3

