mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Open account details modal on buy -> direct deposit.
This commit is contained in:
parent
14bdc5a78c
commit
fe37dd7ecd
@ -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()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user