Skip to content

Commit

Permalink
fix(wallet-settings): Add info for easy confirmation (#3220)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulnr7 authored Apr 29, 2024
1 parent 54b4a17 commit 2ec2232
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const WalletSettingsScreen = () => {
<SettingsItem
icon={<Icon.Bio {...iconProps} />}
label={strings.easyConfirmation}
info={strings.easyConfirmationInfo}
disabled={authSetting === 'pin' || wallet.isHW || wallet.isReadOnly}
>
<Switch
Expand Down Expand Up @@ -262,6 +263,10 @@ const messages = defineMessages({
id: 'components.settings.walletsettingscreen.easyConfirmation',
defaultMessage: '!!!Easy transaction confirmation',
},
easyConfirmationInfo: {
id: 'components.settings.walletsettingscreen.easyConfirmationInfo',
defaultMessage: '!!!Skip the password and approve transactions with biometrics',
},
removeWallet: {
id: 'components.settings.walletsettingscreen.removeWallet',
defaultMessage: '!!!Remove wallet',
Expand Down Expand Up @@ -325,6 +330,7 @@ const useStrings = () => {
security: intl.formatMessage(messages.security),
changePassword: intl.formatMessage(messages.changePassword),
easyConfirmation: intl.formatMessage(messages.easyConfirmation),
easyConfirmationInfo: intl.formatMessage(messages.easyConfirmationInfo),
removeWallet: intl.formatMessage(messages.removeWallet),
network: intl.formatMessage(messages.network),
walletType: intl.formatMessage(messages.walletType),
Expand Down
1 change: 1 addition & 0 deletions apps/wallet-mobile/src/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@
"components.settings.walletsettingscreen.byronWallet": "Byron-era wallet",
"components.settings.walletsettingscreen.changePassword": "Change spending password",
"components.settings.walletsettingscreen.easyConfirmation": "Easy transaction confirmation",
"components.settings.walletsettingscreen.easyConfirmationInfo":"Skip the password and approve transactions with biometrics",
"components.settings.walletsettingscreen.general": "General",
"components.settings.walletsettingscreen.logout": "Logout",
"components.settings.walletsettingscreen.removeWallet": "Remove wallet",
Expand Down
Loading

0 comments on commit 2ec2232

Please sign in to comment.