1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Hook up global modal to Tx view, Buy button

This commit is contained in:
sdtsui 2017-08-08 13:37:52 -07:00
parent f72f57dc6c
commit 29c8f448ca

View File

@ -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', {