fix: update copy

This commit is contained in:
Matilda Landström
2025-05-02 11:31:20 +02:00
committed by Michael Zetterberg
parent 2a333334ac
commit 19407d1b09
3 changed files with 32 additions and 14 deletions

View File

@@ -520,6 +520,7 @@ export default function SummaryUI({
<SignupPromoDesktop
memberPrice={roomOneMemberPrice}
badgeContent={"✌️"}
isEnterDetailsPage
/>
) : null}
</section>

View File

@@ -13,6 +13,7 @@ import type { SignupPromoProps } from "@/types/components/hotelReservation/signu
export default function SignupPromoDesktop({
memberPrice,
badgeContent,
isEnterDetailsPage = false,
}: SignupPromoProps) {
const intl = useIntl()
if (!memberPrice) {
@@ -28,20 +29,35 @@ export default function SignupPromoDesktop({
>
{badgeContent && <span className={styles.badge}>{badgeContent}</span>}
<Footnote color="burgundy">
{intl.formatMessage(
{
defaultMessage:
"To get the member price <span>{price}</span>, log in or join when completing the booking.",
},
{
span: (str) => (
<Caption color="red" type="bold" asChild>
<span>{str}</span>
</Caption>
),
price,
}
)}
{isEnterDetailsPage
? intl.formatMessage(
{
defaultMessage:
"To get the member room price <span>{price}</span>, log in or join when completing the booking.",
},
{
span: (str) => (
<Caption color="red" type="bold" asChild>
<span>{str}</span>
</Caption>
),
price,
}
)
: intl.formatMessage(
{
defaultMessage:
"To get the member price <span>{price}</span>, log in or join when completing the booking.",
},
{
span: (str) => (
<Caption color="red" type="bold" asChild>
<span>{str}</span>
</Caption>
),
price,
}
)}
</Footnote>
</div>
) : null

View File

@@ -4,4 +4,5 @@ export interface SignupPromoProps {
currency: string
}
badgeContent?: string
isEnterDetailsPage?: boolean
}