Skip to content

Commit

Permalink
add easy tx confirmation info
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulnr7 committed Apr 29, 2024
1 parent ce486a8 commit 955eb72
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 134 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
80 changes: 40 additions & 40 deletions apps/wallet-mobile/translations/messages/src/WalletNavigator.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,149 +4,149 @@
"defaultMessage": "!!!Transactions",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 242,
"line": 239,
"column": 22,
"index": 8560
"index": 8518
},
"end": {
"line": 245,
"line": 242,
"column": 3,
"index": 8663
"index": 8621
}
},
{
"id": "components.txhistory.txnavigationbuttons.sendButton",
"defaultMessage": "!!!Send",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 246,
"line": 243,
"column": 14,
"index": 8679
"index": 8637
},
"end": {
"line": 249,
"line": 246,
"column": 3,
"index": 8778
"index": 8736
}
},
{
"id": "components.txhistory.txnavigationbuttons.receiveButton",
"defaultMessage": "!!!Receive",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 250,
"line": 247,
"column": 17,
"index": 8797
"index": 8755
},
"end": {
"line": 253,
"line": 250,
"column": 3,
"index": 8902
"index": 8860
}
},
{
"id": "components.common.navigation.dashboardButton",
"defaultMessage": "!!!Dashboard",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 254,
"line": 251,
"column": 19,
"index": 8923
"index": 8881
},
"end": {
"line": 257,
"line": 254,
"column": 3,
"index": 9020
"index": 8978
}
},
{
"id": "components.common.navigation.delegateButton",
"defaultMessage": "!!!Delegate",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 258,
"line": 255,
"column": 18,
"index": 9040
"index": 8998
},
"end": {
"line": 261,
"line": 258,
"column": 3,
"index": 9135
"index": 9093
}
},
{
"id": "components.settings.walletsettingscreen.tabTitle",
"defaultMessage": "!!!Wallet",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 262,
"line": 259,
"column": 16,
"index": 9153
"index": 9111
},
"end": {
"line": 265,
"line": 262,
"column": 3,
"index": 9251
"index": 9209
}
},
{
"id": "global.staking",
"defaultMessage": "!!!Staking",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 266,
"line": 263,
"column": 17,
"index": 9270
"index": 9228
},
"end": {
"line": 269,
"line": 266,
"column": 3,
"index": 9335
"index": 9293
}
},
{
"id": "components.common.navigation.nftGallery",
"defaultMessage": "!!!NFT Gallery",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 270,
"line": 267,
"column": 14,
"index": 9351
"index": 9309
},
"end": {
"line": 273,
"line": 270,
"column": 3,
"index": 9445
"index": 9403
}
},
{
"id": "menu",
"defaultMessage": "!!!Menu",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 274,
"line": 271,
"column": 14,
"index": 9461
"index": 9419
},
"end": {
"line": 277,
"line": 274,
"column": 3,
"index": 9513
"index": 9471
}
},
{
"id": "components.walletselection.walletselectionscreen.header",
"defaultMessage": "!!!My wallets",
"file": "src/WalletNavigator.tsx",
"start": {
"line": 278,
"line": 275,
"column": 31,
"index": 9546
"index": 9504
},
"end": {
"line": 281,
"line": 278,
"column": 3,
"index": 9655
"index": 9613
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"start": {
"line": 126,
"column": 25,
"index": 4034
"index": 4025
},
"end": {
"line": 129,
"column": 3,
"index": 4228
"index": 4219
}
},
{
Expand All @@ -21,12 +21,12 @@
"start": {
"line": 130,
"column": 25,
"index": 4255
"index": 4246
},
"end": {
"line": 133,
"column": 3,
"index": 4412
"index": 4403
}
},
{
Expand All @@ -36,12 +36,12 @@
"start": {
"line": 134,
"column": 14,
"index": 4428
"index": 4419
},
"end": {
"line": 137,
"column": 3,
"index": 4532
"index": 4523
}
},
{
Expand All @@ -51,12 +51,12 @@
"start": {
"line": 138,
"column": 19,
"index": 4553
"index": 4544
},
"end": {
"line": 141,
"column": 3,
"index": 4662
"index": 4653
}
},
{
Expand All @@ -66,12 +66,12 @@
"start": {
"line": 142,
"column": 27,
"index": 4691
"index": 4682
},
"end": {
"line": 145,
"column": 3,
"index": 4823
"index": 4814
}
},
{
Expand All @@ -81,12 +81,12 @@
"start": {
"line": 146,
"column": 10,
"index": 4835
"index": 4826
},
"end": {
"line": 149,
"column": 3,
"index": 4937
"index": 4928
}
},
{
Expand All @@ -96,12 +96,12 @@
"start": {
"line": 150,
"column": 26,
"index": 4965
"index": 4956
},
"end": {
"line": 154,
"column": 3,
"index": 5179
"index": 5170
}
}
]

0 comments on commit 955eb72

Please sign in to comment.