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}