diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-09-13 08:30:54 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-09-13 08:30:54 +0800 |
commit | fc292627e44f47a6134c342f24147aa3a37391d9 (patch) | |
tree | 403f5a911caa65154eb902419ff1a5f17701b29a /ui/app/accounts/account-list-item.js | |
parent | 09bd35ac7a155e1facd1fc9da3645d23b568641f (diff) | |
parent | f70bb30d2c0839c02d3f19c8e1bf282caf30cc70 (diff) | |
download | tangerine-wallet-browser-fc292627e44f47a6134c342f24147aa3a37391d9.tar.gz tangerine-wallet-browser-fc292627e44f47a6134c342f24147aa3a37391d9.tar.zst tangerine-wallet-browser-fc292627e44f47a6134c342f24147aa3a37391d9.zip |
Merge branch 'master' into qrCode
Diffstat (limited to 'ui/app/accounts/account-list-item.js')
-rw-r--r-- | ui/app/accounts/account-list-item.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/ui/app/accounts/account-list-item.js b/ui/app/accounts/account-list-item.js index 0b4acdfec..4e0d69ed7 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 = NewComponent +module.exports = AccountListItem -inherits(NewComponent, Component) -function NewComponent () { +inherits(AccountListItem, Component) +function AccountListItem () { Component.call(this) } -NewComponent.prototype.render = function () { +AccountListItem.prototype.render = function () { const identity = this.props.identity var isSelected = this.props.selectedAddress === identity.address var account = this.props.accounts[identity.address] @@ -23,9 +23,6 @@ NewComponent.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), }, [ @@ -73,7 +70,7 @@ NewComponent.prototype.render = function () { ) } -NewComponent.prototype.pendingOrNot = function () { +AccountListItem.prototype.pendingOrNot = function () { const pending = this.props.pending if (pending.length === 0) return null return h('.pending-dot', pending.length) |