|
|
@ -27,10 +27,6 @@ class AccountDropdowns extends Component { |
|
|
|
return Object.keys(identities).map((key, index) => { |
|
|
|
return Object.keys(identities).map((key, index) => { |
|
|
|
const identity = identities[key] |
|
|
|
const identity = identities[key] |
|
|
|
const isSelected = identity.address === selected |
|
|
|
const isSelected = identity.address === selected |
|
|
|
console.log("address", identity.address) |
|
|
|
|
|
|
|
console.log("selected:", selected) |
|
|
|
|
|
|
|
console.log("isSelected:", isSelected) |
|
|
|
|
|
|
|
// debugger;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return h( |
|
|
|
return h( |
|
|
|
DropdownMenuItem, |
|
|
|
DropdownMenuItem, |
|
|
@ -63,7 +59,7 @@ class AccountDropdowns extends Component { |
|
|
|
whiteSpace: 'nowrap', |
|
|
|
whiteSpace: 'nowrap', |
|
|
|
overflow: 'hidden', |
|
|
|
overflow: 'hidden', |
|
|
|
textOverflow: 'ellipsis', |
|
|
|
textOverflow: 'ellipsis', |
|
|
|
} |
|
|
|
}, |
|
|
|
}, identity.name || ''), |
|
|
|
}, identity.name || ''), |
|
|
|
h('span', { style: { marginLeft: '20px', fontSize: '24px' } }, isSelected ? h('.check', '✓') : null), |
|
|
|
h('span', { style: { marginLeft: '20px', fontSize: '24px' } }, isSelected ? h('.check', '✓') : null), |
|
|
|
] |
|
|
|
] |
|
|
|