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>
|
||||
|
||||
{addedAncillaries.map((ancillary) => {
|
||||
const ancillaryTitle =
|
||||
const ancillaryTitle = `${
|
||||
ancillary.code === BreakfastPackageEnum.ANCILLARY_REGULAR_BREAKFAST
|
||||
? intl.formatMessage({
|
||||
defaultMessage: "Breakfast",
|
||||
@@ -70,6 +70,7 @@ export function AddedAncillaries({
|
||||
(a) =>
|
||||
a.id === ancillary.code || a.loyaltyCode === ancillary.code
|
||||
)?.title ?? "")
|
||||
} X${ancillary.totalUnit}`
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -151,8 +152,6 @@ export function AddedAncillaries({
|
||||
color="Icon/Feedback/Success"
|
||||
/>
|
||||
<Body textTransform="bold">{ancillaryTitle}</Body>
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
<Body textTransform="bold">{`X${ancillary.totalUnit}`}</Body>
|
||||
</div>
|
||||
<div className={styles.payment}>
|
||||
<Body>
|
||||
|
||||
Reference in New Issue
Block a user