1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00

Open account details modal on buy -> direct deposit.

This commit is contained in:
Dan 2017-09-22 01:56:10 -02:30 committed by Chi Kei Chan
parent 14bdc5a78c
commit fe37dd7ecd

View File

@ -19,6 +19,9 @@ function mapDispatchToProps (dispatch) {
hideModal: () => { hideModal: () => {
dispatch(actions.hideModal()) dispatch(actions.hideModal())
}, },
showAccountDetailModal: () => {
dispatch(actions.showModal({ name: 'ACCOUNT_DETAILS' }))
},
} }
} }
@ -59,7 +62,9 @@ BuyOptions.prototype.render = function () {
h('div.buy-modal-content-option-subtitle', {}, 'Trade any digital asset for any other'), h('div.buy-modal-content-option-subtitle', {}, 'Trade any digital asset for any other'),
]), ]),
h('div.buy-modal-content-option', {}, [ h('div.buy-modal-content-option', {
onClick: () => this.goToAccountDetailsModal()
}, [
h('div.buy-modal-content-option-title', {}, 'Direct Deposit'), h('div.buy-modal-content-option-title', {}, 'Direct Deposit'),
h('div.buy-modal-content-option-subtitle', {}, 'Deposit from another account'), h('div.buy-modal-content-option-subtitle', {}, 'Deposit from another account'),
]), ]),
@ -75,3 +80,8 @@ BuyOptions.prototype.render = function () {
]), ]),
]) ])
} }
BuyOptions.prototype.goToAccountDetailsModal = function () {
this.props.hideModal()
this.props.showAccountDetailModal()
}