diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-08-04 06:32:44 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-08-04 06:32:44 +0800 |
commit | 6176a4b1bf773bfe73d00bec1e4da1f95ffaf7d5 (patch) | |
tree | f8ed507bec373fe06c7e366451c35603c5c5708a /ui/app/components/account-dropdowns.js | |
parent | 81982d01c05b37b80bfb08f1f65a742555acbe0f (diff) | |
download | tangerine-wallet-browser-6176a4b1bf773bfe73d00bec1e4da1f95ffaf7d5.tar tangerine-wallet-browser-6176a4b1bf773bfe73d00bec1e4da1f95ffaf7d5.tar.gz tangerine-wallet-browser-6176a4b1bf773bfe73d00bec1e4da1f95ffaf7d5.tar.bz2 tangerine-wallet-browser-6176a4b1bf773bfe73d00bec1e4da1f95ffaf7d5.tar.lz tangerine-wallet-browser-6176a4b1bf773bfe73d00bec1e4da1f95ffaf7d5.tar.xz tangerine-wallet-browser-6176a4b1bf773bfe73d00bec1e4da1f95ffaf7d5.tar.zst tangerine-wallet-browser-6176a4b1bf773bfe73d00bec1e4da1f95ffaf7d5.zip |
Add QR functionality
Diffstat (limited to 'ui/app/components/account-dropdowns.js')
-rw-r--r-- | ui/app/components/account-dropdowns.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/app/components/account-dropdowns.js b/ui/app/components/account-dropdowns.js index 4ef9a5c14..79e6cff59 100644 --- a/ui/app/components/account-dropdowns.js +++ b/ui/app/components/account-dropdowns.js @@ -149,6 +149,18 @@ class AccountDropdowns extends Component { { closeMenu: () => {}, onClick: () => { + const { selected, identities } = this.props + var identity = identities[selected] + actions.showQrView(selected, identity ? identity.name : '') + }, + }, + 'Show QR Code', + ), + h( + DropdownMenuItem, + { + closeMenu: () => {}, + onClick: () => { const { selected } = this.props const checkSumAddress = selected && ethUtil.toChecksumAddress(selected) copyToClipboard(checkSumAddress) @@ -226,6 +238,7 @@ const mapDispatchToProps = (dispatch) => { showAccountDetail: (address) => dispatch(actions.showAccountDetail(address)), addNewAccount: () => dispatch(actions.addNewAccount()), showImportPage: () => dispatch(actions.showImportPage()), + showQrView: (selected, identity) => dispatch(actions.showQrView(selected, identity)), }, } } |