Hook up global modal to Tx view, Buy button

feature/default_network_editable
sdtsui 7 years ago
parent f72f57dc6c
commit 29c8f448ca
  1. 4
      ui/app/components/tx-view.js

@ -31,6 +31,7 @@ function mapDispatchToProps (dispatch) {
return {
showSidebar: () => { dispatch(actions.showSidebar()) },
hideSidebar: () => { dispatch(actions.hideSidebar()) },
showModal: () => { dispatch(actions.showModal()) },
}
}
@ -119,6 +120,9 @@ TxView.prototype.render = function () {
style: {
textAlign: 'center',
},
onClick: () => {
this.props.showModal()
},
}, 'BUY'),
h('button.btn-clear', {

Loading…
Cancel
Save