From 19407d1b0934633e5d8f6351c6b41ade8ca32e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matilda=20Landstr=C3=B6m?= Date: Fri, 2 May 2025 11:31:20 +0200 Subject: [PATCH] fix: update copy --- .../EnterDetails/Summary/UI/index.tsx | 1 + .../HotelReservation/SignupPromo/Desktop.tsx | 44 +++++++++++++------ .../hotelReservation/signupPromo.ts | 1 + 3 files changed, 32 insertions(+), 14 deletions(-) diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx index a039e1062..85bba94eb 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/Summary/UI/index.tsx @@ -520,6 +520,7 @@ export default function SummaryUI({ ) : null} diff --git a/apps/scandic-web/components/HotelReservation/SignupPromo/Desktop.tsx b/apps/scandic-web/components/HotelReservation/SignupPromo/Desktop.tsx index 62f8352af..27301e86d 100644 --- a/apps/scandic-web/components/HotelReservation/SignupPromo/Desktop.tsx +++ b/apps/scandic-web/components/HotelReservation/SignupPromo/Desktop.tsx @@ -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 && {badgeContent}} - {intl.formatMessage( - { - defaultMessage: - "To get the member price {price}, log in or join when completing the booking.", - }, - { - span: (str) => ( - - {str} - - ), - price, - } - )} + {isEnterDetailsPage + ? intl.formatMessage( + { + defaultMessage: + "To get the member room price {price}, log in or join when completing the booking.", + }, + { + span: (str) => ( + + {str} + + ), + price, + } + ) + : intl.formatMessage( + { + defaultMessage: + "To get the member price {price}, log in or join when completing the booking.", + }, + { + span: (str) => ( + + {str} + + ), + price, + } + )} ) : null diff --git a/apps/scandic-web/types/components/hotelReservation/signupPromo.ts b/apps/scandic-web/types/components/hotelReservation/signupPromo.ts index ff0024e64..07be54267 100644 --- a/apps/scandic-web/types/components/hotelReservation/signupPromo.ts +++ b/apps/scandic-web/types/components/hotelReservation/signupPromo.ts @@ -4,4 +4,5 @@ export interface SignupPromoProps { currency: string } badgeContent?: string + isEnterDetailsPage?: boolean }