Skip to content

Commit

Permalink
Erase profile
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Nov 24, 2022
1 parent 3a4d81b commit 2175670
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/app/components/Persist/UnlockForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ export function UnlockForm() {
plain
/>
</Box>

<Box direction="row" margin={{ top: 'large' }}>
<Button
label={t('persist.loginToProfile.eraseProfile', 'Erase profile')}
onClick={() => {
// TODO
// eslint-disable-next-line no-restricted-globals
if (confirm('Are you sure?')) {
navigate('/')
dispatch(persistActions.eraseAsync())
}
}}
plain
/>
</Box>
</Form>
</Box>
</Layer>
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"loginToProfile": {
"description": "Log into your existing user profile on this computer to access the wallets you already added.",
"enterPasswordHere": "Enter your password here",
"eraseProfile": "Erase profile",
"hidePassword": "Hide password",
"showPassword": "Show password",
"skipUnlocking": "Continue without the profile",
Expand Down

0 comments on commit 2175670

Please sign in to comment.