@ -12,7 +12,7 @@ import {
RESTORE _VAULT _ROUTE ,
CONFIRM _TRANSACTION _ROUTE ,
CONFIRM _ADD _SUGGESTED _TOKEN _ROUTE ,
INITIALIZE _SEED _PHRASE _ROUTE ,
INITIALIZE _BACKUP _ SEED _PHRASE _ROUTE ,
} from '../../helpers/constants/routes'
export default class Home extends PureComponent {
@ -43,8 +43,8 @@ export default class Home extends PureComponent {
viewingUnconnectedDapp : PropTypes . bool . isRequired ,
forceApproveProviderRequestByOrigin : PropTypes . func ,
shouldShowSeedPhraseReminder : PropTypes . bool ,
showSeedPhraseBackupAfterOnboarding : PropTypes . bool ,
rejectProviderRequestByOrigin : PropTypes . func ,
isPopup : PropTypes . bool ,
}
componentWillMount ( ) {
@ -82,8 +82,8 @@ export default class Home extends PureComponent {
viewingUnconnectedDapp ,
forceApproveProviderRequestByOrigin ,
shouldShowSeedPhraseReminder ,
showSeedPhraseBackupAfterOnboarding ,
rejectProviderRequestByOrigin ,
isPopup ,
} = this . props
if ( forgottenPassword ) {
@ -140,8 +140,11 @@ export default class Home extends PureComponent {
descriptionText = { t ( 'backupApprovalNotice' ) }
acceptText = { t ( 'backupNow' ) }
onAccept = { ( ) => {
showSeedPhraseBackupAfterOnboarding ( )
history . push ( INITIALIZE _SEED _PHRASE _ROUTE )
if ( isPopup ) {
global . platform . openExtensionInBrowser ( INITIALIZE _BACKUP _SEED _PHRASE _ROUTE )
} else {
history . push ( INITIALIZE _BACKUP _SEED _PHRASE _ROUTE )
}
} }
infoText = { t ( 'backupApprovalInfo' ) }
key = "home-backupApprovalNotice"