aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/buy-options.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/buy-options.js')
-rw-r--r--ui/app/components/buy-options.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/ui/app/components/buy-options.js b/ui/app/components/buy-options.js
index d36328efd..7d640c007 100644
--- a/ui/app/components/buy-options.js
+++ b/ui/app/components/buy-options.js
@@ -16,6 +16,9 @@ function mapDispatchToProps (dispatch) {
toCoinbase: (address) => {
dispatch(actions.buyEth({ network: '1', address, amount: 0 }))
},
+ hideModal: () => {
+ dispatch(actions.hideModal())
+ }
}
}
@@ -66,9 +69,12 @@ BuyOptions.prototype.render = function () {
]),
- h('div.modal-content-footer', {
- style: {},
- }, 'Cancel'),
+ h('button', {
+ style: {
+ background: 'white',
+ },
+ onClick: () => { this.props.hideModal() },
+ }, h('div.modal-content-footer#modal-content-footer-text',{}, 'Cancel')),
])
])
}