Merged in feature/SW-3515-join-scandic-friends-placeholder (pull request #2883)

feat(SW-3515): display placeholder for join scandic friends

* feat(SW-3515): display placeholder for join scandic friends

* add missing variant config


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-10-02 13:55:24 +00:00
parent 7fcd5833bd
commit ea5c82fef0
16 changed files with 280 additions and 46 deletions

View File

@@ -1,4 +1,3 @@
import { ScandicPartnersEnum } from "@scandic-hotels/common/constants/scandicPartners"
import { logger } from "@scandic-hotels/common/logger"
import { phoneErrors } from "@scandic-hotels/common/utils/zod/phoneValidator"
@@ -10,10 +9,12 @@ import {
import type { IntlShape } from "react-intl"
import type { BookingFlowVariant } from "../../bookingFlowConfig/bookingFlowVariants"
export function getErrorMessage(
intl: IntlShape,
errorCode?: string,
partner?: ScandicPartnersEnum
variant: BookingFlowVariant,
errorCode?: string
) {
switch (errorCode) {
case bookingWidgetErrors.BOOKING_CODE_INVALID:
@@ -47,7 +48,7 @@ export function getErrorMessage(
"Multi-room booking is not available with this booking code.",
})
case bookingWidgetErrors.MULTIROOM_REWARD_NIGHT_UNAVAILABLE:
return partner === ScandicPartnersEnum.sas
return variant === "partner-sas"
? intl.formatMessage({
defaultMessage:
"Multi-room bookings are not available with EuroBonus points.",