|
|
|
@ -144,6 +144,18 @@ class AccountDropdowns extends Component { |
|
|
|
|
}, |
|
|
|
|
'View account on Etherscan', |
|
|
|
|
), |
|
|
|
|
h( |
|
|
|
|
DropdownMenuItem, |
|
|
|
|
{ |
|
|
|
|
closeMenu: () => {}, |
|
|
|
|
onClick: () => { |
|
|
|
|
const { selected, identities } = this.props |
|
|
|
|
var identity = identities[selected] |
|
|
|
|
actions.showQrView(selected, identity ? identity.name : '') |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
'Show QR Code', |
|
|
|
|
), |
|
|
|
|
h( |
|
|
|
|
DropdownMenuItem, |
|
|
|
|
{ |
|
|
|
@ -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)), |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|