Skip to content

Commit

Permalink
feat: add lock-wallet function
Browse files Browse the repository at this point in the history
  • Loading branch information
slient-coder committed Aug 4, 2023
1 parent ca37875 commit 0847e8b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/ui/pages/Main/SettingsTabScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ const SettingList: Setting[] = [
action: 'expand-view',
route: '/settings/export-privatekey',
right: false
},
{
label: '',
value: '',
desc: 'Lock UniSat Wallet ',
action: 'lock-wallet',
route: '',
right: false
}
];

Expand Down Expand Up @@ -153,6 +161,11 @@ export default function SettingsTabScreen() {
openExtensionInTab();
return;
}
if (item.action == 'lock-wallet') {
wallet.lockWallet();
navigate('/account/unlock');
return;
}
navigate(item.route);
}}
/>
Expand Down

0 comments on commit 0847e8b

Please sign in to comment.