Skip to content

Commit

Permalink
Merge pull request #756 from Emurgo/v_almonacid/ch2425/balance-check-…
Browse files Browse the repository at this point in the history
…change-dialog-message

change dialog message in balance check
  • Loading branch information
v-almonacid committed Jan 17, 2020
2 parents 4551211 + 5bf8638 commit 3fbc64e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/components/WalletInit/BalanceCheck/BalanceCheckScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ const messages = defineMessages({
},
})

const snapshotEndMsg = defineMessages({
title: {
id:
'components.walletinit.balancecheck.balancecheckscreen.snapshotend.title',
defaultMessage: '!!!Snapshot has ended',
},
message: {
id:
'components.walletinit.balancecheck.balancecheckscreen.snapshotend.message',
defaultMessage:
'!!!The snapshot period has endeded. You can start delegating now using ' +
'the Yoroi extension, and soon you will be able to do it from the mobile ' +
'app as well.',
},
})

const _translateInvalidPhraseError = (intl: any, error: InvalidPhraseError) => {
if (error.code === INVALID_PHRASE_ERROR_CODES.UNKNOWN_WORDS) {
return intl.formatMessage(mnemonicInputErrorsMessages.UNKNOWN_WORDS, {
Expand Down Expand Up @@ -173,7 +189,7 @@ class BalanceCheckScreen extends Component<Props, State> {
if (e instanceof NetworkError) {
await showErrorDialog(errorMessages.networkError, intl)
} else if (e instanceof ApiError) {
await showErrorDialog(errorMessages.apiError, intl)
await showErrorDialog(snapshotEndMsg, intl)
} else {
throw e
}
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
"components.walletinit.balancecheck.balancecheckscreen.headsUp": "You are on the Shelley Balance Check Testnet",
"components.walletinit.balancecheck.balancecheckscreen.instructions": "Enter the 15-word recovery phrase used to back up your wallet to validate the balance. It will take about 1 minute to verify your balance.",
"components.walletinit.balancecheck.balancecheckscreen.mnemonicInputLabel": "Recovery phrase",
"components.walletinit.balancecheck.balancecheckscreen.snapshotend.title": "Snapshot has ended",
"components.walletinit.balancecheck.balancecheckscreen.snapshotend.message": "The snapshot period has endeded. You can start delegating now using the Yoroi extension, and soon you will be able to do it from the mobile app as well.",
"components.walletinit.balancecheck.balancecheckscreen.title" : "Balance Check",
"components.walletinit.createwallet.createwalletscreen.title": "Create a new wallet",
"components.walletinit.createwallet.mnemonicbackupimportancemodal.confirmationButton": "I understand",
Expand Down

0 comments on commit 3fbc64e

Please sign in to comment.