aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/new-account-modal.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-10-26 10:46:42 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-26 10:46:42 +0800
commitdb5326dfc288015a4d9f792653a71fd4d7abca33 (patch)
treecb93f52f999816d07a6146274093aaebdb7ed8d3 /ui/app/components/modals/new-account-modal.js
parenta9a841ba01f6bffa29a3e0491e3a88f6aff72ac7 (diff)
parentb2e440e4ffba6db29cf8a928a41534c1f204d485 (diff)
downloadtangerine-wallet-browser-db5326dfc288015a4d9f792653a71fd4d7abca33.tar
tangerine-wallet-browser-db5326dfc288015a4d9f792653a71fd4d7abca33.tar.gz
tangerine-wallet-browser-db5326dfc288015a4d9f792653a71fd4d7abca33.tar.bz2
tangerine-wallet-browser-db5326dfc288015a4d9f792653a71fd4d7abca33.tar.lz
tangerine-wallet-browser-db5326dfc288015a4d9f792653a71fd4d7abca33.tar.xz
tangerine-wallet-browser-db5326dfc288015a4d9f792653a71fd4d7abca33.tar.zst
tangerine-wallet-browser-db5326dfc288015a4d9f792653a71fd4d7abca33.zip
Merge branch 'NewUI-flat' into uat
Diffstat (limited to 'ui/app/components/modals/new-account-modal.js')
-rw-r--r--ui/app/components/modals/new-account-modal.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/ui/app/components/modals/new-account-modal.js b/ui/app/components/modals/new-account-modal.js
index 25beb6745..b78de1d8d 100644
--- a/ui/app/components/modals/new-account-modal.js
+++ b/ui/app/components/modals/new-account-modal.js
@@ -28,6 +28,7 @@ function mapDispatchToProps (dispatch) {
dispatch(actions.hideModal())
})
},
+ showImportPage: () => dispatch(actions.showImportPage()),
}
}
@@ -36,7 +37,7 @@ function NewAccountModal () {
Component.call(this)
this.state = {
- newAccountName: ''
+ newAccountName: '',
}
}
@@ -63,7 +64,7 @@ NewAccountModal.prototype.render = function () {
h('div.new-account-input-wrapper', {}, [
h('input.new-account-input', {
placeholder: 'E.g. My new account',
- onChange: (event) => this.setState({ newAccountName: event.target.value })
+ onChange: event => this.setState({ newAccountName: event.target.value }),
}, []),
]),
@@ -71,13 +72,16 @@ NewAccountModal.prototype.render = function () {
'or',
]),
- h('div.new-account-modal-content.after-input', {}, [
- 'Import an account',
- ]),
+ h('div.new-account-modal-content.after-input.pointer', {
+ onClick: () => {
+ this.props.hideModal()
+ this.props.showImportPage()
+ },
+ }, 'Import an account'),
h('div.new-account-modal-content.button', {}, [
h('button.btn-clear', {
- onClick: () => this.props.createAccount(newAccountName)
+ onClick: () => this.props.createAccount(newAccountName),
}, [
'SAVE',
]),