aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/dropdowns
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-20 16:05:27 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-24 08:33:50 +0800
commit0eeba3771c2396c12de3f254dbfaae957344411d (patch)
treee07191adb37e501b46449dd68689446f00c05933 /ui/app/components/dropdowns
parente1077836ce916e2bd788451e3f365324024a1c0c (diff)
downloadtangerine-wallet-browser-0eeba3771c2396c12de3f254dbfaae957344411d.tar
tangerine-wallet-browser-0eeba3771c2396c12de3f254dbfaae957344411d.tar.gz
tangerine-wallet-browser-0eeba3771c2396c12de3f254dbfaae957344411d.tar.bz2
tangerine-wallet-browser-0eeba3771c2396c12de3f254dbfaae957344411d.tar.lz
tangerine-wallet-browser-0eeba3771c2396c12de3f254dbfaae957344411d.tar.xz
tangerine-wallet-browser-0eeba3771c2396c12de3f254dbfaae957344411d.tar.zst
tangerine-wallet-browser-0eeba3771c2396c12de3f254dbfaae957344411d.zip
Exports private key modal opens from dropdown.
Diffstat (limited to 'ui/app/components/dropdowns')
-rw-r--r--ui/app/components/dropdowns/components/account-dropdowns.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/components/dropdowns/components/account-dropdowns.js b/ui/app/components/dropdowns/components/account-dropdowns.js
index e2d3d6d64..76f186a3f 100644
--- a/ui/app/components/dropdowns/components/account-dropdowns.js
+++ b/ui/app/components/dropdowns/components/account-dropdowns.js
@@ -337,9 +337,7 @@ class AccountDropdowns extends Component {
DropdownMenuItem,
{
closeMenu: () => {},
- onClick: () => {
- actions.requestAccountExport()
- },
+ onClick: () => this.props.actions.showExportPrivateKeyModal(),
style: Object.assign(
dropdownMenuItemStyle,
menuItemStyles,
@@ -429,7 +427,6 @@ const mapDispatchToProps = (dispatch) => {
return {
actions: {
showConfigPage: () => dispatch(actions.showConfigPage()),
- requestAccountExport: () => dispatch(actions.requestExportAccount()),
showAccountDetail: (address) => dispatch(actions.showAccountDetail(address)),
showAccountDetailModal: () => {
dispatch(actions.showModal({ name: 'ACCOUNT_DETAILS' }))
@@ -443,6 +440,9 @@ const mapDispatchToProps = (dispatch) => {
showNewAccountModal: () => {
dispatch(actions.showModal({ name: 'NEW_ACCOUNT' }))
},
+ showExportPrivateKeyModal: () => {
+ dispatch(actions.showModal({ name: 'EXPORT_PRIVATE_KEY' }))
+ },
showAddTokenPage: () => {
dispatch(actions.showAddTokenPage())
},