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