aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-22 12:26:10 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-23 03:16:31 +0800
commitfe37dd7ecd142bbb0b51d62abfdc0a25240aef42 (patch)
treee1444aba9b1c5193050558d9806595ccf6b69538 /ui
parent14bdc5a78c8529742754d69b8e45693b06b380fe (diff)
downloadtangerine-wallet-browser-fe37dd7ecd142bbb0b51d62abfdc0a25240aef42.tar
tangerine-wallet-browser-fe37dd7ecd142bbb0b51d62abfdc0a25240aef42.tar.gz
tangerine-wallet-browser-fe37dd7ecd142bbb0b51d62abfdc0a25240aef42.tar.bz2
tangerine-wallet-browser-fe37dd7ecd142bbb0b51d62abfdc0a25240aef42.tar.lz
tangerine-wallet-browser-fe37dd7ecd142bbb0b51d62abfdc0a25240aef42.tar.xz
tangerine-wallet-browser-fe37dd7ecd142bbb0b51d62abfdc0a25240aef42.tar.zst
tangerine-wallet-browser-fe37dd7ecd142bbb0b51d62abfdc0a25240aef42.zip
Open account details modal on buy -> direct deposit.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/modals/buy-options-modal.js12
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()
+}