@ -42,7 +42,7 @@ export default class Home extends PureComponent {
selectedAddress : PropTypes . string ,
selectedAddress : PropTypes . string ,
restoreFromThreeBox : PropTypes . func ,
restoreFromThreeBox : PropTypes . func ,
setShowRestorePromptToFalse : PropTypes . func ,
setShowRestorePromptToFalse : PropTypes . func ,
threeBoxLastUpdated : PropTypes . string ,
threeBoxLastUpdated : PropTypes . number ,
}
}
componentWillMount ( ) {
componentWillMount ( ) {
@ -119,10 +119,10 @@ export default class Home extends PureComponent {
< TransactionView >
< TransactionView >
< MultipleNotifications
< MultipleNotifications
className
className
notifications = { [
>
{
{
shouldBeRendered : showPrivacyModeNotification ,
showPrivacyModeNotification
component : < HomeNotification
? < HomeNotification
descriptionText = { t ( 'privacyModeDefault' ) }
descriptionText = { t ( 'privacyModeDefault' ) }
acceptText = { t ( 'learnMore' ) }
acceptText = { t ( 'learnMore' ) }
onAccept = { ( ) => {
onAccept = { ( ) => {
@ -134,11 +134,12 @@ export default class Home extends PureComponent {
unsetMigratedPrivacyMode ( )
unsetMigratedPrivacyMode ( )
} }
} }
key = "home-privacyModeDefault"
key = "home-privacyModeDefault"
/ > ,
/ >
} ,
: null
}
{
{
shouldBeRendered : shouldShowSeedPhraseReminder ,
shouldShowSeedPhraseReminder
component : < HomeNotification
? < HomeNotification
descriptionText = { t ( 'backupApprovalNotice' ) }
descriptionText = { t ( 'backupApprovalNotice' ) }
acceptText = { t ( 'backupNow' ) }
acceptText = { t ( 'backupNow' ) }
onAccept = { ( ) => {
onAccept = { ( ) => {
@ -150,12 +151,13 @@ export default class Home extends PureComponent {
} }
} }
infoText = { t ( 'backupApprovalInfo' ) }
infoText = { t ( 'backupApprovalInfo' ) }
key = "home-backupApprovalNotice"
key = "home-backupApprovalNotice"
/ > ,
/ >
} ,
: null
}
{
{
shouldBeRendered : threeBoxLastUpdated && showRestorePrompt ,
threeBoxLastUpdated && showRestorePrompt
component : < HomeNotification
? < HomeNotification
descriptionText = { t ( 'restoreWalletPreferences' , [ formatDate ( parseInt ( threeBoxLastUpdated ) , 'M/d/y' ) ] ) }
descriptionText = { t ( 'restoreWalletPreferences' , [ formatDate ( threeBoxLastUpdated , 'M/d/y' ) ] ) }
acceptText = { t ( 'restore' ) }
acceptText = { t ( 'restore' ) }
ignoreText = { t ( 'noThanks' ) }
ignoreText = { t ( 'noThanks' ) }
infoText = { t ( 'dataBackupFoundInfo' ) }
infoText = { t ( 'dataBackupFoundInfo' ) }
@ -169,9 +171,10 @@ export default class Home extends PureComponent {
setShowRestorePromptToFalse ( )
setShowRestorePromptToFalse ( )
} }
} }
key = "home-privacyModeDefault"
key = "home-privacyModeDefault"
/ > ,
/ >
} ,
: null
] } / >
}
< / M u l t i p l e N o t i f i c a t i o n s >
< / T r a n s a c t i o n V i e w >
< / T r a n s a c t i o n V i e w >
)
)
: null }
: null }