aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-04-04 09:20:51 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-04-04 09:20:51 +0800
commit7776af7cd059499f34eea3408b323fd6b73fd05e (patch)
tree7acc010ea726f570938146f9e159769563a36658 /ui
parent007f91cc50227eebb3db557db17c2f81625bdcf2 (diff)
downloadtangerine-wallet-browser-7776af7cd059499f34eea3408b323fd6b73fd05e.tar
tangerine-wallet-browser-7776af7cd059499f34eea3408b323fd6b73fd05e.tar.gz
tangerine-wallet-browser-7776af7cd059499f34eea3408b323fd6b73fd05e.tar.bz2
tangerine-wallet-browser-7776af7cd059499f34eea3408b323fd6b73fd05e.tar.lz
tangerine-wallet-browser-7776af7cd059499f34eea3408b323fd6b73fd05e.tar.xz
tangerine-wallet-browser-7776af7cd059499f34eea3408b323fd6b73fd05e.tar.zst
tangerine-wallet-browser-7776af7cd059499f34eea3408b323fd6b73fd05e.zip
Use new design for showing seed words
Diffstat (limited to 'ui')
-rw-r--r--ui/app/keychains/hd/recover-seed/confirmation.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/ui/app/keychains/hd/recover-seed/confirmation.js b/ui/app/keychains/hd/recover-seed/confirmation.js
index 02183f096..eb588415f 100644
--- a/ui/app/keychains/hd/recover-seed/confirmation.js
+++ b/ui/app/keychains/hd/recover-seed/confirmation.js
@@ -4,12 +4,21 @@ const PropTypes = require('prop-types')
const connect = require('react-redux').connect
const h = require('react-hyperscript')
const actions = require('../../../actions')
+const { withRouter } = require('react-router-dom')
+const { compose } = require('recompose')
+const {
+ DEFAULT_ROUTE,
+ INITIALIZE_BACKUP_PHRASE_ROUTE,
+} = require('../../../routes')
RevealSeedConfirmation.contextTypes = {
t: PropTypes.func,
}
-module.exports = connect(mapStateToProps)(RevealSeedConfirmation)
+module.exports = compose(
+ withRouter,
+ connect(mapStateToProps)
+)(RevealSeedConfirmation)
inherits(RevealSeedConfirmation, Component)
@@ -109,6 +118,8 @@ RevealSeedConfirmation.prototype.componentDidMount = function () {
RevealSeedConfirmation.prototype.goHome = function () {
this.props.dispatch(actions.showConfigPage(false))
+ this.props.dispatch(actions.confirmSeedWords())
+ .then(() => this.props.history.push(DEFAULT_ROUTE))
}
// create vault
@@ -123,4 +134,5 @@ RevealSeedConfirmation.prototype.checkConfirmation = function (event) {
RevealSeedConfirmation.prototype.revealSeedWords = function () {
var password = document.getElementById('password-box').value
this.props.dispatch(actions.requestRevealSeed(password))
+ .then(() => this.props.history.push(INITIALIZE_BACKUP_PHRASE_ROUTE))
}