feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass
This commit is contained in:
@@ -43,7 +43,12 @@ export default function TotalPrice({
|
||||
return (
|
||||
<Typography variant={variant}>
|
||||
<p>
|
||||
{intl.formatMessage({ id: "{count} voucher" }, { count: vouchers })}
|
||||
{intl.formatMessage(
|
||||
{
|
||||
defaultMessage: "{count} voucher",
|
||||
},
|
||||
{ count: vouchers }
|
||||
)}
|
||||
</p>
|
||||
</Typography>
|
||||
)
|
||||
@@ -53,6 +58,7 @@ export default function TotalPrice({
|
||||
return (
|
||||
<div className={styles.totalPrice}>
|
||||
<Typography variant={variant}>
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
<p>{cheques} CC + </p>
|
||||
</Typography>
|
||||
<Price price={totalPrice} variant={variant} />
|
||||
@@ -63,6 +69,7 @@ export default function TotalPrice({
|
||||
if (totalPrice && totalPrice > 0 && type === "points") {
|
||||
return (
|
||||
<div className={styles.totalPrice}>
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
<Points points={totalPoints} variant={variant} /> +{" "}
|
||||
<Price price={totalPrice} variant={variant} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user