|
|
@ -12,7 +12,7 @@ import { |
|
|
|
RESTORE_VAULT_ROUTE, |
|
|
|
RESTORE_VAULT_ROUTE, |
|
|
|
CONFIRM_TRANSACTION_ROUTE, |
|
|
|
CONFIRM_TRANSACTION_ROUTE, |
|
|
|
CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE, |
|
|
|
CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE, |
|
|
|
INITIALIZE_SEED_PHRASE_ROUTE, |
|
|
|
INITIALIZE_BACKUP_SEED_PHRASE_ROUTE, |
|
|
|
} from '../../helpers/constants/routes' |
|
|
|
} from '../../helpers/constants/routes' |
|
|
|
|
|
|
|
|
|
|
|
export default class Home extends PureComponent { |
|
|
|
export default class Home extends PureComponent { |
|
|
@ -43,8 +43,8 @@ export default class Home extends PureComponent { |
|
|
|
viewingUnconnectedDapp: PropTypes.bool.isRequired, |
|
|
|
viewingUnconnectedDapp: PropTypes.bool.isRequired, |
|
|
|
forceApproveProviderRequestByOrigin: PropTypes.func, |
|
|
|
forceApproveProviderRequestByOrigin: PropTypes.func, |
|
|
|
shouldShowSeedPhraseReminder: PropTypes.bool, |
|
|
|
shouldShowSeedPhraseReminder: PropTypes.bool, |
|
|
|
showSeedPhraseBackupAfterOnboarding: PropTypes.bool, |
|
|
|
|
|
|
|
rejectProviderRequestByOrigin: PropTypes.func, |
|
|
|
rejectProviderRequestByOrigin: PropTypes.func, |
|
|
|
|
|
|
|
isPopup: PropTypes.bool, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
componentWillMount () { |
|
|
|
componentWillMount () { |
|
|
@ -82,8 +82,8 @@ export default class Home extends PureComponent { |
|
|
|
viewingUnconnectedDapp, |
|
|
|
viewingUnconnectedDapp, |
|
|
|
forceApproveProviderRequestByOrigin, |
|
|
|
forceApproveProviderRequestByOrigin, |
|
|
|
shouldShowSeedPhraseReminder, |
|
|
|
shouldShowSeedPhraseReminder, |
|
|
|
showSeedPhraseBackupAfterOnboarding, |
|
|
|
|
|
|
|
rejectProviderRequestByOrigin, |
|
|
|
rejectProviderRequestByOrigin, |
|
|
|
|
|
|
|
isPopup, |
|
|
|
} = this.props |
|
|
|
} = this.props |
|
|
|
|
|
|
|
|
|
|
|
if (forgottenPassword) { |
|
|
|
if (forgottenPassword) { |
|
|
@ -140,8 +140,11 @@ export default class Home extends PureComponent { |
|
|
|
descriptionText={t('backupApprovalNotice')} |
|
|
|
descriptionText={t('backupApprovalNotice')} |
|
|
|
acceptText={t('backupNow')} |
|
|
|
acceptText={t('backupNow')} |
|
|
|
onAccept={() => { |
|
|
|
onAccept={() => { |
|
|
|
showSeedPhraseBackupAfterOnboarding() |
|
|
|
if (isPopup) { |
|
|
|
history.push(INITIALIZE_SEED_PHRASE_ROUTE) |
|
|
|
global.platform.openExtensionInBrowser(INITIALIZE_BACKUP_SEED_PHRASE_ROUTE) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
history.push(INITIALIZE_BACKUP_SEED_PHRASE_ROUTE) |
|
|
|
|
|
|
|
} |
|
|
|
}} |
|
|
|
}} |
|
|
|
infoText={t('backupApprovalInfo')} |
|
|
|
infoText={t('backupApprovalInfo')} |
|
|
|
key="home-backupApprovalNotice" |
|
|
|
key="home-backupApprovalNotice" |
|
|
|