feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass
This commit is contained in:
@@ -35,7 +35,9 @@ export function AncillaryCard({ ancillary }: AncillaryCardProps) {
|
||||
<div className={styles.price}>
|
||||
<Body color="uiTextHighContrast">
|
||||
{ancillary.price.included
|
||||
? intl.formatMessage({ id: "Included" })
|
||||
? intl.formatMessage({
|
||||
defaultMessage: "Included",
|
||||
})
|
||||
: priceMsg}
|
||||
</Body>
|
||||
|
||||
@@ -46,7 +48,9 @@ export function AncillaryCard({ ancillary }: AncillaryCardProps) {
|
||||
</div>
|
||||
<Body textAlign="right" color="uiTextHighContrast">
|
||||
{intl.formatMessage(
|
||||
{ id: "{value} points" },
|
||||
{
|
||||
defaultMessage: "{value} points",
|
||||
},
|
||||
{
|
||||
value: ancillary.points,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user