|
|
|
@ -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', |
|
|
|
|
]), |
|
|
|
|