Skip to content

Commit

Permalink
Fix mnemonic checksum retry
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbuedo committed Apr 23, 2024
1 parent 8421a05 commit c906228
Show file tree
Hide file tree
Showing 7 changed files with 355 additions and 353 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const MnemonicInput = ({
onDone(mnemonicWords.join(' '))
} else {
track.restoreWalletEnterPhraseStepStatus({recovery_prhase_status: false})
onDone('')
}
}
}, [mnemonicWordsComplete, isValid, mnemonicWords, onDone, track])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export const useStrings = () => {
walletPasswordModalCardSecondItem: intl.formatMessage(messages.walletPasswordModalCardSecondItem),
walletChecksumModalCardTitle: intl.formatMessage(messages.walletChecksumModalCardTitle),
walletChecksumModalCardFirstItem: intl.formatMessage(messages.walletChecksumModalCardFirstItem),
walletChecksumModalCardSecondItem: intl.formatMessage(messages.walletChecksumModalCardSecondItem),
walletChecksumModalCardSecondItem: (plate: string) =>
intl.formatMessage(messages.walletChecksumModalCardSecondItem, {plate}),
walletChecksumModalCardThirdItem: intl.formatMessage(messages.walletChecksumModalCardThirdItem),
stepWalletDetails: intl.formatMessage(messages.stepWalletDetails),
walletDetailsTitle: (options: {b: (content: React.ReactNode[]) => React.ReactNode}) =>
Expand Down Expand Up @@ -320,7 +321,7 @@ export const messages = Object.freeze(
},
walletChecksumModalCardSecondItem: {
id: 'components.walletinit.walletDetails.walletChecksumModalCardItem.second',
defaultMessage: '!!!Plate number BONE-0770 is a auto-generated sign of four letters and four digits.',
defaultMessage: '!!!Plate number {plate} is a auto-generated sign of four letters and four digits.',
},
walletChecksumModalCardThirdItem: {
id: 'components.walletinit.walletDetails.walletChecksumModalCardItem.third',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const RestoreWalletDetailsScreen = () => {
checksumLine={1}
linesOfText={[
strings.walletChecksumModalCardFirstItem,
strings.walletChecksumModalCardSecondItem,
strings.walletChecksumModalCardSecondItem(plate.accountPlate.TextPart),
strings.walletChecksumModalCardThirdItem,
]}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/wallet-mobile/src/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@
"components.walletinit.walletDetails.walletPasswordModalCardItem.second": "Both wallet name and password are stored locally, so you are only person who can change or restore it.",
"components.walletinit.walletDetails.walletChecksumModalCardTitle.title": "What is wallet checksum and plate number?",
"components.walletinit.walletDetails.walletChecksumModalCardItem.first": "Wallet checksum is a generic Blockie image that is generated to visually distinguish your wallet from others.",
"components.walletinit.walletDetails.walletChecksumModalCardItem.second": "Plate number BONE-0770 is a auto-generated sign of four letters and four digits.",
"components.walletinit.walletDetails.walletChecksumModalCardItem.second": "Plate number {plate} is a auto-generated sign of four letters and four digits.",
"components.walletinit.walletDetails.walletChecksumModalCardItem.third": "Checksum and plate number are unique to your wallet and represent your public key.",
"components.walletinit.walletDetails.stepWalletDetails": "Wallet details",
"components.walletinit.walletDetails.walletDetailsTitle": "<b>Add</b> your <b>wallet name</b> and <b>password</b>. ",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,194 +4,194 @@
"defaultMessage": "!!!Upgrade your stake pool",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 102,
"line": 103,
"column": 9,
"index": 3432
"index": 3484
},
"end": {
"line": 105,
"line": 106,
"column": 3,
"index": 3530
"index": 3582
}
},
{
"id": "components.pooltransition.warning",
"defaultMessage": "!!!The current stake pool you're using will soon close. Migrate to the new EMURGO pool to sustain reward generation.",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 106,
"line": 107,
"column": 11,
"index": 3543
"index": 3595
},
"end": {
"line": 110,
"line": 111,
"column": 3,
"index": 3739
"index": 3791
}
},
{
"id": "components.pooltransition.finalWarning",
"defaultMessage": "!!!The current stake pool you're using is decommissioned and NOT generating reward anymore. Update it to continue earning",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 111,
"line": 112,
"column": 16,
"index": 3757
"index": 3809
},
"end": {
"line": 115,
"line": 116,
"column": 3,
"index": 3963
"index": 4015
}
},
{
"id": "components.pooltransition.currentPool",
"defaultMessage": "!!!Current pool",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 116,
"line": 117,
"column": 15,
"index": 3980
"index": 4032
},
"end": {
"line": 119,
"line": 120,
"column": 3,
"index": 4073
"index": 4125
}
},
{
"id": "components.pooltransition.newPool",
"defaultMessage": "!!!New pool",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 120,
"line": 121,
"column": 11,
"index": 4086
"index": 4138
},
"end": {
"line": 123,
"line": 124,
"column": 3,
"index": 4171
"index": 4223
}
},
{
"id": "components.pooltransition.estimatedRoa",
"defaultMessage": "!!!Estimated ROA",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 124,
"line": 125,
"column": 16,
"index": 4189
"index": 4241
},
"end": {
"line": 127,
"line": 128,
"column": 3,
"index": 4284
"index": 4336
}
},
{
"id": "components.pooltransition.fee",
"defaultMessage": "!!!Fee",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 128,
"line": 129,
"column": 7,
"index": 4293
"index": 4345
},
"end": {
"line": 131,
"line": 132,
"column": 3,
"index": 4369
"index": 4421
}
},
{
"id": "components.pooltransition.poolGeneratesRewards",
"defaultMessage": "!!!This pool continues to generate staking rewards",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 132,
"line": 133,
"column": 24,
"index": 4395
"index": 4447
},
"end": {
"line": 135,
"line": 136,
"column": 3,
"index": 4532
"index": 4584
}
},
{
"id": "components.pooltransition.poolNoRewards",
"defaultMessage": "!!!This pool is NOT generating staking rewards anymore",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 136,
"line": 137,
"column": 17,
"index": 4551
"index": 4603
},
"end": {
"line": 139,
"line": 140,
"column": 3,
"index": 4685
"index": 4737
}
},
{
"id": "components.pooltransition.poolWillStopRewards",
"defaultMessage": "!!!This pool will stop generating rewards in",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 140,
"line": 141,
"column": 23,
"index": 4710
"index": 4762
},
"end": {
"line": 143,
"line": 144,
"column": 3,
"index": 4840
"index": 4892
}
},
{
"id": "components.pooltransition.skipNoRewards",
"defaultMessage": "!!!Skip and stop receiving rewards",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 144,
"line": 145,
"column": 17,
"index": 4859
"index": 4911
},
"end": {
"line": 147,
"line": 148,
"column": 3,
"index": 4973
"index": 5025
}
},
{
"id": "components.pooltransition.updateKeepEarning",
"defaultMessage": "!!!Update now and keep earning",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 148,
"line": 149,
"column": 21,
"index": 4996
"index": 5048
},
"end": {
"line": 151,
"line": 152,
"column": 3,
"index": 5110
"index": 5162
}
},
{
"id": "components.pooltransition.update",
"defaultMessage": "!!!Update pool",
"file": "src/Staking/PoolTransition/usePoolTransition.tsx",
"start": {
"line": 152,
"line": 153,
"column": 10,
"index": 5122
"index": 5174
},
"end": {
"line": 155,
"line": 156,
"column": 3,
"index": 5209
"index": 5261
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@
"defaultMessage": "!!!Note:",
"file": "src/TxHistory/TxHistory.tsx",
"start": {
"line": 136,
"line": 133,
"column": 9,
"index": 4437
"index": 4322
},
"end": {
"line": 139,
"line": 136,
"column": 3,
"index": 4536
"index": 4421
}
},
{
"id": "components.txhistory.txhistory.warningbanner.message",
"defaultMessage": "!!!The Shelley protocol upgrade adds a new Shelley wallet type which supports delegation.",
"file": "src/TxHistory/TxHistory.tsx",
"start": {
"line": 140,
"line": 137,
"column": 11,
"index": 4549
"index": 4434
},
"end": {
"line": 143,
"line": 140,
"column": 3,
"index": 4731
"index": 4616
}
}
]
Loading

0 comments on commit c906228

Please sign in to comment.