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/gallery/Gallery.svelte | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'frontend/src/lib/gallery/Gallery.svelte')

diff --git a/frontend/src/lib/gallery/Gallery.svelte b/frontend/src/lib/gallery/Gallery.svelte
index 964c677..0480026 100644
--- a/frontend/src/lib/gallery/Gallery.svelte
+++ b/frontend/src/lib/gallery/Gallery.svelte
@@ -2,12 +2,18 @@
 	import type { PageFragment } from '$gql/graphql';
 	import GalleryPage from './GalleryPage.svelte';
 
-	export let pages: PageFragment[];
+	interface Props {
+		pages: PageFragment[];
+		open: (page: number) => void;
+		updateCover: (page: number) => void;
+	}
+
+	let { pages, open, updateCover }: Props = $props();
 </script>
 
 <div class="max-h-full gap-2 overflow-auto p-1 pr-3" tabindex="-1">
 	{#each pages as page, index}
-		<GalleryPage {page} {index} on:open on:cover />
+		<GalleryPage {page} {index} {open} {updateCover} />
 	{/each}
 </div>
 
-- 
cgit v1.2.3-2-gb3c3

