feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass

This commit is contained in:
Michael Zetterberg
2025-02-07 06:51:36 +01:00
parent e22fc1f3c8
commit 440e1f92df
393 changed files with 4839 additions and 1554 deletions

View File

@@ -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>