Skip to content

Commit

Permalink
Merge pull request #1962 from oasisprotocol/lw/fix-bold
Browse files Browse the repository at this point in the history
Fix using bold text instead of quotes around "delete"
  • Loading branch information
lukaw3d authored May 29, 2024
2 parents d942d77 + ba104a2 commit dcb01bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .changelog/1962.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use bold text instead of quotes around "delete" confirmation keyword
15 changes: 8 additions & 7 deletions src/app/components/Toolbar/Features/Account/DeleteAccount.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useContext } from 'react'
import { useTranslation } from 'react-i18next'
import { Trans, useTranslation } from 'react-i18next'
import { Box } from 'grommet/es6/components/Box'
import { Paragraph } from 'grommet/es6/components/Paragraph'
import { ResponsiveContext } from 'grommet/es6/contexts/ResponsiveContext'
Expand Down Expand Up @@ -50,13 +50,14 @@ export const DeleteAccount = ({ onCancel, onDelete, wallet }: DeleteAccountProps
<DeleteInputForm onCancel={onCancel} onConfirm={onDelete}>
<label htmlFor="type_delete">
<Paragraph fill textAlign="center">
{t(
'toolbar.settings.delete.inputHelp',
`This action cannot be undone. To continue please type <strong>{{confirmationKeyword}}</strong> below.`,
{
<Trans
i18nKey="toolbar.settings.delete.inputHelp"
t={t}
defaults="This action cannot be undone. To continue please type <strong>{{confirmationKeyword}}</strong> below."
values={{
confirmationKeyword: t('deleteForm.confirmationKeyword', 'delete'),
},
)}
}}
/>
</Paragraph>
</label>
</DeleteInputForm>
Expand Down

0 comments on commit dcb01bf

Please sign in to comment.