@ -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"