Merged in feat/sw-3547-update-member-rate-alert-text (pull request #2992)
feat(SW-3547): Update texts for SAS variant member rate alert * Update texts for SAS variant Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
@@ -4,21 +4,36 @@ import { useIntl } from "react-intl"
|
||||
|
||||
import Footnote from "@scandic-hotels/design-system/Footnote"
|
||||
|
||||
import { useBookingFlowConfig } from "../../bookingFlowConfig/bookingFlowConfigContext"
|
||||
|
||||
import styles from "./signupPromo.module.css"
|
||||
|
||||
export default function SignupPromoMobile() {
|
||||
const intl = useIntl()
|
||||
return (
|
||||
<div
|
||||
data-footer-spacing-signup
|
||||
className={styles.memberDiscountBannerMobile}
|
||||
>
|
||||
<Footnote color="burgundy">
|
||||
{intl.formatMessage({
|
||||
id: "signup.joinOrLoginForMemberPricing",
|
||||
defaultMessage: "Join or log in while booking for member pricing.",
|
||||
})}
|
||||
<Message />
|
||||
</Footnote>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
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 member price.",
|
||||
})
|
||||
}
|
||||
|
||||
return intl.formatMessage({
|
||||
id: "signup.joinOrLoginForMemberPricing",
|
||||
defaultMessage: "Join or log in while booking for member pricing.",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user