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

@@ -21,7 +21,8 @@ export default function ManagePreferencesButton() {
} else {
toast.error(
intl.formatMessage({
id: "It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.",
defaultMessage:
"It is not posible to manage your communication preferences right now, please try again later or contact support if the problem persists.",
})
)
}
@@ -29,7 +30,8 @@ export default function ManagePreferencesButton() {
onError: () => {
toast.error(
intl.formatMessage({
id: "An error occurred trying to manage your preferences, please try again later.",
defaultMessage:
"An error occurred trying to manage your preferences, please try again later.",
})
)
},
@@ -46,7 +48,9 @@ export default function ManagePreferencesButton() {
wrapping
>
<MaterialIcon icon="arrow_forward" color="CurrentColor" />
{intl.formatMessage({ id: "Manage preferences" })}
{intl.formatMessage({
defaultMessage: "Manage preferences",
})}
</Button>
)
}