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

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

diff --git a/frontend/src/lib/components/Guard.svelte b/frontend/src/lib/components/Guard.svelte
index fd7ded4..38cbd65 100644
--- a/frontend/src/lib/components/Guard.svelte
+++ b/frontend/src/lib/components/Guard.svelte
@@ -1,9 +1,10 @@
 <script lang="ts">
 	import { getResultState } from '$lib/Utils';
+	import type { OperationResultStore } from '@urql/svelte';
 	import Spinner from './Spinner.svelte';
 
-	export let result;
-	$: state = getResultState($result);
+	let { result }: { result: OperationResultStore } = $props();
+	let state = $derived(getResultState($result));
 </script>
 
 {#if state.fetching}
-- 
cgit v1.2.3-2-gb3c3

