diff options
Open account details modal on buy -> direct deposit.
Diffstat (limited to 'ui/app/components/modals')
-rw-r--r-- | ui/app/components/modals/buy-options-modal.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/app/components/modals/buy-options-modal.js b/ui/app/components/modals/buy-options-modal.js index 79bbc798b..a8033d288 100644 --- a/ui/app/components/modals/buy-options-modal.js +++ b/ui/app/components/modals/buy-options-modal.js @@ -19,6 +19,9 @@ function mapDispatchToProps (dispatch) { 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', {}, [ + h('div.buy-modal-content-option', { + onClick: () => this.goToAccountDetailsModal() + }, [ h('div.buy-modal-content-option-title', {}, 'Direct Deposit'), 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() +} |