Merged in feature/warmup (pull request #1887)
* unified warmup function Approved-by: Linus Flood
This commit is contained in:
@@ -144,8 +144,8 @@ export default function ConfirmationStep({
|
||||
label={
|
||||
savedCreditCards?.length
|
||||
? intl.formatMessage({
|
||||
defaultMessage: "OTHER",
|
||||
})
|
||||
defaultMessage: "OTHER",
|
||||
})
|
||||
: undefined
|
||||
}
|
||||
>
|
||||
|
||||
@@ -2,14 +2,13 @@
|
||||
import { Button as ButtonRAC } from "react-aria-components"
|
||||
|
||||
import {
|
||||
MaterialIcon
|
||||
,type
|
||||
MaterialIconProps} from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||
MaterialIcon,
|
||||
type MaterialIconProps,
|
||||
} from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import styles from "./button.module.css"
|
||||
|
||||
|
||||
interface ButtonProps extends React.PropsWithChildren {
|
||||
icon: MaterialIconProps["icon"]
|
||||
isDisabled?: boolean
|
||||
|
||||
@@ -9,14 +9,13 @@ import {
|
||||
clearGlaSessionStorage,
|
||||
readGlaFromSessionStorage,
|
||||
} from "@/components/HotelReservation/EnterDetails/Payment/PaymentCallback/helpers"
|
||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||
import { trackEvent } from "@/utils/tracking/base"
|
||||
import { buildAncillaries } from "@/utils/tracking/myStay"
|
||||
|
||||
import {
|
||||
buildAncillaryPackages,
|
||||
getAncillarySessionData,
|
||||
} from "@/components/HotelReservation/MyStay/utils/ancillaries"
|
||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||
import { trackEvent } from "@/utils/tracking/base"
|
||||
import { buildAncillaries } from "@/utils/tracking/myStay"
|
||||
|
||||
interface TrackGuaranteeProps {
|
||||
status: string
|
||||
@@ -93,21 +92,21 @@ export default function TrackGuarantee({
|
||||
case PaymentCallbackStatusEnum.Cancel:
|
||||
isAncillaryFlow
|
||||
? trackAncillaryPaymentEvent(
|
||||
"GuaranteeCancelAncillary",
|
||||
"glacardsavecancelled"
|
||||
)
|
||||
"GuaranteeCancelAncillary",
|
||||
"glacardsavecancelled"
|
||||
)
|
||||
: trackGuaranteePaymentEvent(
|
||||
"glaCardSaveCancelled",
|
||||
"glacardsavecancelled"
|
||||
)
|
||||
"glaCardSaveCancelled",
|
||||
"glacardsavecancelled"
|
||||
)
|
||||
break
|
||||
|
||||
case PaymentCallbackStatusEnum.Error:
|
||||
isAncillaryFlow
|
||||
? trackAncillaryPaymentEvent(
|
||||
"GuaranteeFailAncillary",
|
||||
"glacardsavefailed"
|
||||
)
|
||||
"GuaranteeFailAncillary",
|
||||
"glacardsavefailed"
|
||||
)
|
||||
: trackGuaranteePaymentEvent("glaCardSaveFailed", "glacardsavefailed")
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user