From 20b21de69e15d7ee309f33b68ff6bba053e076d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kr=C4=8Dek?= Date: Wed, 17 Sep 2025 21:47:37 +0200 Subject: [PATCH] Fix deprecated methods --- src/lib/components/Wizard.svelte | 33 ++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/src/lib/components/Wizard.svelte b/src/lib/components/Wizard.svelte index b31a992..3cf2402 100644 --- a/src/lib/components/Wizard.svelte +++ b/src/lib/components/Wizard.svelte @@ -10,18 +10,6 @@ import StepGallery from './wizard/StepGallery.svelte'; import StepGenerate from './wizard/StepGenerate.svelte'; - const stepComponents = { - splash: Splash, - auth: StepAuth, - search: StepSheetSearch, - mapping: StepColumnMap, - validation: StepRowFilter, - 'card-details': StepCardDetails, - 'card-select': StepCardSelect, - gallery: StepGallery, - generate: StepGenerate - }; - const stepTitles = { splash: 'Welcome', auth: 'Authenticate', @@ -35,7 +23,6 @@ }; let currentTitle = $derived(stepTitles[$currentStepName]); - let currentComponent = $derived(stepComponents[$currentStepName]); let currentStepIndex = $derived(stepNames.indexOf($currentStepName)); @@ -65,7 +52,25 @@
- + {#if $currentStepName === 'splash'} + + {:else if $currentStepName === 'auth'} + + {:else if $currentStepName === 'search'} + + {:else if $currentStepName === 'mapping'} + + {:else if $currentStepName === 'validation'} + + {:else if $currentStepName === 'card-details'} + + {:else if $currentStepName === 'card-select'} + + {:else if $currentStepName === 'gallery'} + + {:else if $currentStepName === 'generate'} + + {/if}