aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-06-17 07:55:32 +0800
committerDan Finlay <dan@danfinlay.com>2016-06-17 07:55:32 +0800
commit2835112dbfe48f97383f7481925b87733d571651 (patch)
treed697986e2211b23a6aa0a9a033027a187bf5407a /ui/app
parent93fa97f86a5d0dd4e8657bea888f2f4fbd783a56 (diff)
downloadtangerine-wallet-browser-2835112dbfe48f97383f7481925b87733d571651.tar
tangerine-wallet-browser-2835112dbfe48f97383f7481925b87733d571651.tar.gz
tangerine-wallet-browser-2835112dbfe48f97383f7481925b87733d571651.tar.bz2
tangerine-wallet-browser-2835112dbfe48f97383f7481925b87733d571651.tar.lz
tangerine-wallet-browser-2835112dbfe48f97383f7481925b87733d571651.tar.xz
tangerine-wallet-browser-2835112dbfe48f97383f7481925b87733d571651.tar.zst
tangerine-wallet-browser-2835112dbfe48f97383f7481925b87733d571651.zip
Conditionally display disclaimer
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/app.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 25d6b1685..610bb34c8 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -8,6 +8,7 @@ const extend = require('xtend')
const actions = require('./actions')
const ReactCSSTransitionGroup = require('react-addons-css-transition-group')
// init
+const DisclaimerScreen = require('./first-time/disclaimer')
const InitializeMenuScreen = require('./first-time/init-menu')
const CreateVaultScreen = require('./first-time/create-vault')
const CreateVaultCompleteScreen = require('./first-time/create-vault-complete')
@@ -39,6 +40,7 @@ function App() { Component.call(this) }
function mapStateToProps(state) {
return {
// state from plugin
+ isConfirmed: state.metamask.isConfirmed,
isInitialized: state.metamask.isInitialized,
isUnlocked: state.metamask.isUnlocked,
currentView: state.appState.currentView,
@@ -240,6 +242,10 @@ App.prototype.renderDropdown = function() {
App.prototype.renderPrimary = function(){
var props = this.props
+ if (!props.isConfirmed) {
+ return h(DisclaimerScreen, {key: 'disclaimerScreen'})
+ }
+
if (props.seedWords) {
return h(CreateVaultCompleteScreen, {key: 'createVaultComplete'})
}