aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/dropdowns
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-21 10:10:49 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-21 10:10:49 +0800
commit71b2dd290b2bbf3107d06d0616ec8858d21b44da (patch)
tree874a8857b70254b42bf1cd1b1ff6b2c1d4a5246e /ui/app/components/dropdowns
parent4e9376ca7129611d12a7ec263741f1dee0e4d79c (diff)
downloadtangerine-wallet-browser-71b2dd290b2bbf3107d06d0616ec8858d21b44da.tar
tangerine-wallet-browser-71b2dd290b2bbf3107d06d0616ec8858d21b44da.tar.gz
tangerine-wallet-browser-71b2dd290b2bbf3107d06d0616ec8858d21b44da.tar.bz2
tangerine-wallet-browser-71b2dd290b2bbf3107d06d0616ec8858d21b44da.tar.lz
tangerine-wallet-browser-71b2dd290b2bbf3107d06d0616ec8858d21b44da.tar.xz
tangerine-wallet-browser-71b2dd290b2bbf3107d06d0616ec8858d21b44da.tar.zst
tangerine-wallet-browser-71b2dd290b2bbf3107d06d0616ec8858d21b44da.zip
Enhance global modal to handle Buy, Edit, and Details Modals
Diffstat (limited to 'ui/app/components/dropdowns')
-rw-r--r--ui/app/components/dropdowns/components/account-dropdowns.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/app/components/dropdowns/components/account-dropdowns.js b/ui/app/components/dropdowns/components/account-dropdowns.js
index 6af90655b..9a9fbc0fc 100644
--- a/ui/app/components/dropdowns/components/account-dropdowns.js
+++ b/ui/app/components/dropdowns/components/account-dropdowns.js
@@ -189,7 +189,7 @@ class AccountDropdowns extends Component {
{
closeMenu: () => {},
onClick: () => {
- this.props.showAccountDetail()
+ this.props.actions.showAccountDetailModal()
},
style: Object.assign(
{},
@@ -348,6 +348,9 @@ const mapDispatchToProps = (dispatch) => {
showConfigPage: () => dispatch(actions.showConfigPage()),
requestAccountExport: () => dispatch(actions.requestExportAccount()),
showAccountDetail: (address) => dispatch(actions.showAccountDetail(address)),
+ showAccountDetailModal: () => {
+ dispatch(actions.showModal({ name: 'ACCOUNT_DETAILS' }))
+ },
addNewAccount: () => dispatch(actions.addNewAccount()),
showImportPage: () => dispatch(actions.showImportPage()),
showQrView: (selected, identity) => dispatch(actions.showQrView(selected, identity)),