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

Loading…
Cancel
Save