1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 18:41:38 +01:00

Hook up selected account label display to main wallet view

This commit is contained in:
sdtsui 2017-08-21 04:51:55 -07:00
parent d82233b95c
commit c2636143c3

View File

@ -39,10 +39,9 @@ function WalletView () {
const noop = () => {}
WalletView.prototype.render = function () {
const { network, responsiveDisplayClassname, style, identities, selectedAddress, selectedAccount, accounts } = this.props
const { network, responsiveDisplayClassname, style, identities, selectedAddress, selectedAccount, accounts, selectedIdentity } = this.props
// temporary logs + fake extra wallets
console.log(selectedAccount)
console.log("walletview, selectedAccount:", selectedAccount)
const extraWallet = h('div.flex-column.wallet-balance-wrapper', {}, [
h('div.wallet-balance', {}, [
@ -121,7 +120,7 @@ WalletView.prototype.render = function () {
h('span.account-name', {
style: {}
}, [
'Account 1'
selectedIdentity.name
]),
]),