feat(SW-706): make eslint rule 'formatjs/no-literal-string-in-jsx' pass
This commit is contained in:
@@ -22,13 +22,16 @@ export default function DeleteCreditCardConfirmation({
|
||||
trpcUtils.user.creditCards.invalidate()
|
||||
|
||||
toast.success(
|
||||
intl.formatMessage({ id: "Your card was successfully removed!" })
|
||||
intl.formatMessage({
|
||||
defaultMessage: "Your card was successfully removed!",
|
||||
})
|
||||
)
|
||||
},
|
||||
onError() {
|
||||
toast.error(
|
||||
intl.formatMessage({
|
||||
id: "Something went wrong and we couldn't remove your card. Please try again later.",
|
||||
defaultMessage:
|
||||
"Something went wrong and we couldn't remove your card. Please try again later.",
|
||||
})
|
||||
)
|
||||
},
|
||||
@@ -42,7 +45,8 @@ export default function DeleteCreditCardConfirmation({
|
||||
|
||||
const bodyText = intl.formatMessage(
|
||||
{
|
||||
id: "Are you sure you want to remove the card ending with {lastFourDigits} from your member profile?",
|
||||
defaultMessage:
|
||||
"Are you sure you want to remove the card ending with {lastFourDigits} from your member profile?",
|
||||
},
|
||||
{ lastFourDigits }
|
||||
)
|
||||
@@ -50,10 +54,16 @@ export default function DeleteCreditCardConfirmation({
|
||||
return (
|
||||
<Dialog
|
||||
bodyText={bodyText}
|
||||
cancelButtonText={intl.formatMessage({ id: "No, keep card" })}
|
||||
cancelButtonText={intl.formatMessage({
|
||||
defaultMessage: "No, keep card",
|
||||
})}
|
||||
proceedOnClick={handleProceedDeleteCard}
|
||||
proceedText={intl.formatMessage({ id: "Yes, remove my card" })}
|
||||
titleText={intl.formatMessage({ id: "Remove card from member profile" })}
|
||||
proceedText={intl.formatMessage({
|
||||
defaultMessage: "Yes, remove my card",
|
||||
})}
|
||||
titleText={intl.formatMessage({
|
||||
defaultMessage: "Remove card from member profile",
|
||||
})}
|
||||
trigger={
|
||||
<Button intent="secondary" size="small" theme="base">
|
||||
<MaterialIcon icon="delete" color="Icon/Interactive/Default" />
|
||||
|
||||
Reference in New Issue
Block a user