Merged in fix/SW-2738-show-quantity-ancillaries--mobile (pull request #2084)
fix(SW-2738): add quantity to title for mobile and desktop * fix(SW-2738): add quantity to title for mobile and desktop Approved-by: Niclas Edenvin Approved-by: Joakim Jäderberg Approved-by: Matilda Landström
This commit is contained in:
@@ -61,7 +61,7 @@ export function AddedAncillaries({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{addedAncillaries.map((ancillary) => {
|
{addedAncillaries.map((ancillary) => {
|
||||||
const ancillaryTitle =
|
const ancillaryTitle = `${
|
||||||
ancillary.code === BreakfastPackageEnum.ANCILLARY_REGULAR_BREAKFAST
|
ancillary.code === BreakfastPackageEnum.ANCILLARY_REGULAR_BREAKFAST
|
||||||
? intl.formatMessage({
|
? intl.formatMessage({
|
||||||
defaultMessage: "Breakfast",
|
defaultMessage: "Breakfast",
|
||||||
@@ -70,6 +70,7 @@ export function AddedAncillaries({
|
|||||||
(a) =>
|
(a) =>
|
||||||
a.id === ancillary.code || a.loyaltyCode === ancillary.code
|
a.id === ancillary.code || a.loyaltyCode === ancillary.code
|
||||||
)?.title ?? "")
|
)?.title ?? "")
|
||||||
|
} X${ancillary.totalUnit}`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -151,8 +152,6 @@ export function AddedAncillaries({
|
|||||||
color="Icon/Feedback/Success"
|
color="Icon/Feedback/Success"
|
||||||
/>
|
/>
|
||||||
<Body textTransform="bold">{ancillaryTitle}</Body>
|
<Body textTransform="bold">{ancillaryTitle}</Body>
|
||||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
|
||||||
<Body textTransform="bold">{`X${ancillary.totalUnit}`}</Body>
|
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.payment}>
|
<div className={styles.payment}>
|
||||||
<Body>
|
<Body>
|
||||||
|
|||||||
Reference in New Issue
Block a user