diff options
author | Frankie <frankie.diamond@gmail.com> | 2016-09-13 01:34:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-13 01:34:06 +0800 |
commit | c37c050c8a119e4c2de1edea474c3c3d5ad1cf99 (patch) | |
tree | 9a4f288759d608b2300dc0245ea898f01d6d9a1b /ui/app/accounts/account-list-item.js | |
parent | fcc9ca812e557fd5ecc547f5eb597069788d6c00 (diff) | |
download | tangerine-wallet-browser-c37c050c8a119e4c2de1edea474c3c3d5ad1cf99.tar.gz tangerine-wallet-browser-c37c050c8a119e4c2de1edea474c3c3d5ad1cf99.tar.zst tangerine-wallet-browser-c37c050c8a119e4c2de1edea474c3c3d5ad1cf99.zip |
Revert "Add new eth-lightwallet salting to vault."
Diffstat (limited to 'ui/app/accounts/account-list-item.js')
-rw-r--r-- | ui/app/accounts/account-list-item.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ui/app/accounts/account-list-item.js b/ui/app/accounts/account-list-item.js index 4e0d69ed7..0b4acdfec 100644 --- a/ui/app/accounts/account-list-item.js +++ b/ui/app/accounts/account-list-item.js @@ -7,14 +7,14 @@ const EthBalance = require('../components/eth-balance') const CopyButton = require('../components/copyButton') const Identicon = require('../components/identicon') -module.exports = AccountListItem +module.exports = NewComponent -inherits(AccountListItem, Component) -function AccountListItem () { +inherits(NewComponent, Component) +function NewComponent () { Component.call(this) } -AccountListItem.prototype.render = function () { +NewComponent.prototype.render = function () { const identity = this.props.identity var isSelected = this.props.selectedAddress === identity.address var account = this.props.accounts[identity.address] @@ -23,6 +23,9 @@ AccountListItem.prototype.render = function () { return ( h(`.accounts-list-option.flex-row.flex-space-between.pointer.hover-white${selectedClass}`, { key: `account-panel-${identity.address}`, + style: { + flex: '1 0 auto', + }, onClick: (event) => this.props.onShowDetail(identity.address, event), }, [ @@ -70,7 +73,7 @@ AccountListItem.prototype.render = function () { ) } -AccountListItem.prototype.pendingOrNot = function () { +NewComponent.prototype.pendingOrNot = function () { const pending = this.props.pending if (pending.length === 0) return null return h('.pending-dot', pending.length) |