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/scraper/components/SelectorButton.svelte | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

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

diff --git a/frontend/src/lib/scraper/components/SelectorButton.svelte b/frontend/src/lib/scraper/components/SelectorButton.svelte
index b786f89..e976f91 100644
--- a/frontend/src/lib/scraper/components/SelectorButton.svelte
+++ b/frontend/src/lib/scraper/components/SelectorButton.svelte
@@ -1,19 +1,19 @@
 <script lang="ts">
-	import { Selector } from '$lib/Scraper';
+	import { Selector } from '../Scraper.svelte';
 
-	export let selector: Selector<string>;
+	let { selector }: { selector: Selector<string> } = $props();
 </script>
 
 <button
 	type="button"
 	class="ml-1 flex rounded-sm border-slate-700 bg-slate-900 hover:brightness-110"
-	on:click={() => (selector.keep = !selector.keep)}
+	onclick={selector.toggle}
 >
 	<div class="flex self-center pl-1">
 		{#if selector.keep}
-			<span class="icon-base icon-[material-symbols--check] text-green-400" />
+			<span class="icon-base icon-[material-symbols--check] text-green-400"></span>
 		{:else}
-			<span class="icon-base icon-[material-symbols--close] text-red-400" />
+			<span class="icon-base icon-[material-symbols--close] text-red-400"></span>
 		{/if}
 	</div>
 	<p class:opacity-50={!selector.keep} class="p-1 text-left">
-- 
cgit v1.2.3-2-gb3c3

