summaryrefslogtreecommitdiffstatshomepage
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/lib/components/AddButton.svelte9
1 files changed, 8 insertions, 1 deletions
diff --git a/frontend/src/lib/components/AddButton.svelte b/frontend/src/lib/components/AddButton.svelte
index f07eafd..7a07bd7 100644
--- a/frontend/src/lib/components/AddButton.svelte
+++ b/frontend/src/lib/components/AddButton.svelte
@@ -1,5 +1,12 @@
<script lang="ts">
- let { title, onclick }: { title: string; onclick: () => void } = $props();
+ import type { MouseEventHandler } from 'svelte/elements';
+
+ interface Props {
+ title: string;
+ onclick: MouseEventHandler<HTMLButtonElement>;
+ }
+
+ let { title, onclick }: Props = $props();
</script>
<button class="btn-blue" {title} aria-label={title} {onclick}>