mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 14:37:13 +01:00
further hacking
This commit is contained in:
@@ -23,6 +23,8 @@ function WizardInternal() {
|
||||
const isFirstStep = currentStep === 0
|
||||
const isLastStep = currentStep === STEPS.length - 1
|
||||
|
||||
const CurrentStepComponent = STEPS[currentStep].component
|
||||
|
||||
return (
|
||||
<Form
|
||||
onSubmit={(event) => {
|
||||
@@ -41,9 +43,7 @@ function WizardInternal() {
|
||||
onSubmit()
|
||||
}}
|
||||
>
|
||||
{STEPS.map(({ id, component: Component }, index) => (
|
||||
<>{currentStep === index && <Component />}</>
|
||||
))}
|
||||
<CurrentStepComponent />
|
||||
{!isFirstStep && (
|
||||
<Button
|
||||
variant="secondary"
|
||||
|
||||
Reference in New Issue
Block a user