From 29c8f448ca683f0dbdd2ef046463500121e5e24e Mon Sep 17 00:00:00 2001 From: sdtsui Date: Tue, 8 Aug 2017 13:37:52 -0700 Subject: Hook up global modal to Tx view, Buy button --- ui/app/components/tx-view.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui') diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js index d0337fcb1..9d7bc9138 100644 --- a/ui/app/components/tx-view.js +++ b/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', { -- cgit v1.2.3