mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 14:37:13 +01:00
fix wizard next
This commit is contained in:
@@ -31,14 +31,12 @@ function WizardInternal() {
|
||||
console.log(key, value)
|
||||
}
|
||||
|
||||
console.log(state)
|
||||
|
||||
return
|
||||
|
||||
if (!isLastStep) {
|
||||
dispatch({ type: ACTIONS.NEXT_STEP })
|
||||
return
|
||||
}
|
||||
|
||||
throw Error('Submit not implemented yet')
|
||||
dispatch({ type: ACTIONS.SUBMIT })
|
||||
}}
|
||||
>
|
||||
@@ -54,7 +52,7 @@ function WizardInternal() {
|
||||
</Button>
|
||||
)}
|
||||
{!isLastStep && <Button type="submit">Weiter</Button>}
|
||||
{isLastStep && <Button>Absenden</Button>}
|
||||
{isLastStep && <Button type="submit">Absenden</Button>}
|
||||
</Form>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user