Add QR functionality

feature/default_network_editable
Kevin Serrano 7 years ago
parent 81982d01c0
commit 6176a4b1bf
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 13
      ui/app/components/account-dropdowns.js

@ -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)),
},
}
}

Loading…
Cancel
Save