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:
@@ -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.",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user