Skip to content

Commit

Permalink
fix: working of the wipe device / factory reset modal
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-sanderson committed Jan 8, 2025
1 parent 36d890c commit 439653e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ export const WipeDeviceModal = ({ onCancel }: WipeDeviceModalProps) => {
<Translation id={headingTranslation} />
</H3>
<Paragraph variant="tertiary" margin={{ top: spacings.xs }}>
<Translation id="TR_WIPE_DEVICE_TEXT" />
<Translation
id={
isBootloaderMode
? 'TR_FACTORY_RESET_MODAL_DESCRIPTION'
: 'TR_WIPE_DEVICE_MODAL_DESCRIPTION'
}
/>
</Paragraph>
<Card margin={{ top: spacings.lg }}>
<Column gap={spacings.md} alignItems="center">
Expand Down
9 changes: 7 additions & 2 deletions packages/suite/src/support/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4027,11 +4027,16 @@ export default defineMessages({
id: 'EVENT_WALLET_CREATED',
defaultMessage: 'Wallet added successfully',
},
TR_WIPE_DEVICE_TEXT: {
id: 'TR_WIPE_DEVICE_TEXT',
TR_FACTORY_RESET_MODAL_DESCRIPTION: {
id: 'TR_FACTORY_RESET_MODAL_DESCRIPTION',
defaultMessage:
'Resetting the device removes all its data. Reset your device only if you have your wallet backup, which can restore access to your funds.',
},
TR_WIPE_DEVICE_MODAL_DESCRIPTION: {
id: 'TR_WIPE_DEVICE_MODAL_DESCRIPTION',
defaultMessage:
'Wiping the device removes all its data. Wipe your device only if you have your wallet backup, which can restore access to your funds.',
},
TR_WIPE_DEVICE_CHECKBOX_1_TITLE: {
id: 'TR_WIPE_DEVICE_CHECKBOX_1_TITLE',
defaultMessage: 'I understand this action deletes all data on the device',
Expand Down

0 comments on commit 439653e

Please sign in to comment.