aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-09 04:37:52 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-09 04:37:52 +0800
commit29c8f448ca683f0dbdd2ef046463500121e5e24e (patch)
tree56433de32816ef1e27d111050b9205e43079e208 /ui
parentf72f57dc6c75f6c0abfd90765073e41487f6f584 (diff)
downloadtangerine-wallet-browser-29c8f448ca683f0dbdd2ef046463500121e5e24e.tar
tangerine-wallet-browser-29c8f448ca683f0dbdd2ef046463500121e5e24e.tar.gz
tangerine-wallet-browser-29c8f448ca683f0dbdd2ef046463500121e5e24e.tar.bz2
tangerine-wallet-browser-29c8f448ca683f0dbdd2ef046463500121e5e24e.tar.lz
tangerine-wallet-browser-29c8f448ca683f0dbdd2ef046463500121e5e24e.tar.xz
tangerine-wallet-browser-29c8f448ca683f0dbdd2ef046463500121e5e24e.tar.zst
tangerine-wallet-browser-29c8f448ca683f0dbdd2ef046463500121e5e24e.zip
Hook up global modal to Tx view, Buy button
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/tx-view.js4
1 files changed, 4 insertions, 0 deletions
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', {