aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/account-dropdowns.js
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-08-04 06:32:44 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-08-04 06:32:44 +0800
commit6176a4b1bf773bfe73d00bec1e4da1f95ffaf7d5 (patch)
treef8ed507bec373fe06c7e366451c35603c5c5708a /ui/app/components/account-dropdowns.js
parent81982d01c05b37b80bfb08f1f65a742555acbe0f (diff)
downloadtangerine-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.js13
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)),
},
}
}