Merged in chore/booking-flow-cleaning (pull request #3354)

chore: Clean booking-flow

* Clean booking-flow

* Fix type issue


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-12-17 13:04:26 +00:00
parent eb3b18b35e
commit 6ee262ad89
10 changed files with 70 additions and 32 deletions

View File

@@ -25,15 +25,19 @@ function Message() {
const intl = useIntl()
const config = useBookingFlowConfig()
if (config.variant === "partner-sas") {
return intl.formatMessage({
id: "signup.toGetTheScandicMemberPrice",
defaultMessage: "Enter ID or join to get the Scandic Friends price.",
})
switch (config.variant) {
case "partner-sas":
return intl.formatMessage({
id: "signup.toGetTheScandicMemberPrice",
defaultMessage: "Enter ID or join to get the Scandic Friends price.",
})
case "scandic":
return intl.formatMessage({
id: "signup.joinOrLoginForMemberPricing",
defaultMessage: "Join or log in while booking for member pricing.",
})
default:
const _exhaustiveCheck: never = config.variant
throw new Error(`Unknown variant: ${config.variant}`)
}
return intl.formatMessage({
id: "signup.joinOrLoginForMemberPricing",
defaultMessage: "Join or log in while booking for member pricing.",
})
}