Fix deprecated methods
This commit is contained in:
@@ -10,18 +10,6 @@
|
|||||||
import StepGallery from './wizard/StepGallery.svelte';
|
import StepGallery from './wizard/StepGallery.svelte';
|
||||||
import StepGenerate from './wizard/StepGenerate.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 = {
|
const stepTitles = {
|
||||||
splash: 'Welcome',
|
splash: 'Welcome',
|
||||||
auth: 'Authenticate',
|
auth: 'Authenticate',
|
||||||
@@ -35,7 +23,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
let currentTitle = $derived(stepTitles[$currentStepName]);
|
let currentTitle = $derived(stepTitles[$currentStepName]);
|
||||||
let currentComponent = $derived(stepComponents[$currentStepName]);
|
|
||||||
let currentStepIndex = $derived(stepNames.indexOf($currentStepName));
|
let currentStepIndex = $derived(stepNames.indexOf($currentStepName));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -65,7 +52,25 @@
|
|||||||
|
|
||||||
<!-- Step content -->
|
<!-- Step content -->
|
||||||
<div class="bg-white rounded-lg shadow-sm">
|
<div class="bg-white rounded-lg shadow-sm">
|
||||||
<svelte:component this={currentComponent} />
|
{#if $currentStepName === 'splash'}
|
||||||
|
<Splash />
|
||||||
|
{:else if $currentStepName === 'auth'}
|
||||||
|
<StepAuth />
|
||||||
|
{:else if $currentStepName === 'search'}
|
||||||
|
<StepSheetSearch />
|
||||||
|
{:else if $currentStepName === 'mapping'}
|
||||||
|
<StepColumnMap />
|
||||||
|
{:else if $currentStepName === 'validation'}
|
||||||
|
<StepRowFilter />
|
||||||
|
{:else if $currentStepName === 'card-details'}
|
||||||
|
<StepCardDetails />
|
||||||
|
{:else if $currentStepName === 'card-select'}
|
||||||
|
<StepCardSelect />
|
||||||
|
{:else if $currentStepName === 'gallery'}
|
||||||
|
<StepGallery />
|
||||||
|
{:else if $currentStepName === 'generate'}
|
||||||
|
<StepGenerate />
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user