Merged in fix/SW-2608-add-per-night-child-breakfast (pull request #1993)

fix(SW-2608): add per night for children breakfast

* fix(SW-2608): add per night for children breakfast

* fix(SW-2608): capitalized according to figma


Approved-by: Michael Zetterberg
This commit is contained in:
Bianca Widstam
2025-05-07 13:58:06 +00:00
parent 5e059bdfc9
commit 868c4aefec

View File

@@ -440,7 +440,7 @@ function BreakfastPriceList() {
<span> <span>
{intl.formatMessage( {intl.formatMessage(
{ {
defaultMessage: "{price} / Adult / night", defaultMessage: "{price} / Adult / Night",
}, },
{ {
price: `${breakfastData.priceAdult} ${breakfastData.currency}`, price: `${breakfastData.priceAdult} ${breakfastData.currency}`,
@@ -456,12 +456,16 @@ function BreakfastPriceList() {
</div> </div>
<Typography variant="Body/Paragraph/mdBold"> <Typography variant="Body/Paragraph/mdBold">
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */} <span>
<span>{`${breakfastData.priceChild} ${breakfastData.currency} / ${intl.formatMessage( {intl.formatMessage(
{ {
defaultMessage: "Years", defaultMessage: "{price} / Years 4-12 / Night",
},
{
price: `${breakfastData.priceChild} ${breakfastData.currency}`,
} }
)} 4-12`}</span> )}
</span>
</Typography> </Typography>
</> </>
)} )}