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
|
<SignupPromoDesktop
|
||||||
memberPrice={roomOneMemberPrice}
|
memberPrice={roomOneMemberPrice}
|
||||||
badgeContent={"✌️"}
|
badgeContent={"✌️"}
|
||||||
|
isEnterDetailsPage
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import type { SignupPromoProps } from "@/types/components/hotelReservation/signu
|
|||||||
export default function SignupPromoDesktop({
|
export default function SignupPromoDesktop({
|
||||||
memberPrice,
|
memberPrice,
|
||||||
badgeContent,
|
badgeContent,
|
||||||
|
isEnterDetailsPage = false,
|
||||||
}: SignupPromoProps) {
|
}: SignupPromoProps) {
|
||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
if (!memberPrice) {
|
if (!memberPrice) {
|
||||||
@@ -28,20 +29,35 @@ export default function SignupPromoDesktop({
|
|||||||
>
|
>
|
||||||
{badgeContent && <span className={styles.badge}>{badgeContent}</span>}
|
{badgeContent && <span className={styles.badge}>{badgeContent}</span>}
|
||||||
<Footnote color="burgundy">
|
<Footnote color="burgundy">
|
||||||
{intl.formatMessage(
|
{isEnterDetailsPage
|
||||||
{
|
? intl.formatMessage(
|
||||||
defaultMessage:
|
{
|
||||||
"To get the member price <span>{price}</span>, log in or join when completing the booking.",
|
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>{str}</span>
|
<Caption color="red" type="bold" asChild>
|
||||||
</Caption>
|
<span>{str}</span>
|
||||||
),
|
</Caption>
|
||||||
price,
|
),
|
||||||
}
|
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>
|
</Footnote>
|
||||||
</div>
|
</div>
|
||||||
) : null
|
) : null
|
||||||
|
|||||||
@@ -4,4 +4,5 @@ export interface SignupPromoProps {
|
|||||||
currency: string
|
currency: string
|
||||||
}
|
}
|
||||||
badgeContent?: string
|
badgeContent?: string
|
||||||
|
isEnterDetailsPage?: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user