fix: update copy
This commit is contained in:
committed by
Michael Zetterberg
parent
2a333334ac
commit
19407d1b09
@@ -520,6 +520,7 @@ export default function SummaryUI({
|
||||
<SignupPromoDesktop
|
||||
memberPrice={roomOneMemberPrice}
|
||||
badgeContent={"✌️"}
|
||||
isEnterDetailsPage
|
||||
/>
|
||||
) : null}
|
||||
</section>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,4 +4,5 @@ export interface SignupPromoProps {
|
||||
currency: string
|
||||
}
|
||||
badgeContent?: string
|
||||
isEnterDetailsPage?: boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user