feat(SW-791): make confirmation page dynamic

This commit is contained in:
Simon Emanuelsson
2024-11-06 16:31:03 +01:00
parent e6a70a0a8a
commit 0897a398ee
35 changed files with 983 additions and 577 deletions

View File

@@ -38,7 +38,7 @@ interface EnterDetailsState {
step: StepEnum,
updatedData?: Record<
string,
string | boolean | BreakfastPackage | BedTypeSchema
string | boolean | number | BreakfastPackage | BedTypeSchema
>
) => void
setCurrentStep: (step: StepEnum) => void
@@ -157,7 +157,6 @@ export function initEditDetailsState(
const nextStep =
state.steps[state.steps.indexOf(state.currentStep) + 1]
// @ts-expect-error: ts has a hard time understanding that "false | true" equals "boolean"
state.userData = {
...state.userData,
...updatedData,