From a08c3bc01b11fbd0e3a243359befbe9fc909edf4 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 21 Jun 2016 13:18:32 -0700 Subject: Auto linted --- ui/app/accounts/account-panel.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'ui/app/accounts/account-panel.js') diff --git a/ui/app/accounts/account-panel.js b/ui/app/accounts/account-panel.js index b49f4c098..42d186201 100644 --- a/ui/app/accounts/account-panel.js +++ b/ui/app/accounts/account-panel.js @@ -9,13 +9,12 @@ const Identicon = require('../components/identicon') module.exports = NewComponent - inherits(NewComponent, Component) -function NewComponent() { +function NewComponent () { Component.call(this) } -NewComponent.prototype.render = function() { +NewComponent.prototype.render = function () { const identity = this.props.identity var mayBeFauceting = identity.mayBeFauceting var isSelected = this.props.selectedAddress === identity.address @@ -35,7 +34,7 @@ NewComponent.prototype.render = function() { h('.identicon-wrapper.flex-column.flex-center.select-none', [ this.pendingOrNot(), h(Identicon, { - address: identity.address + address: identity.address, }), ]), @@ -68,14 +67,14 @@ NewComponent.prototype.render = function() { event.stopPropagation() event.preventDefault() copyToClipboard(ethUtil.toChecksumAddress(identity.address)) - } + }, }), ]), ]) ) } -NewComponent.prototype.pendingOrNot = function() { +NewComponent.prototype.pendingOrNot = function () { const pending = this.props.pending if (pending.length === 0) return null return h('.pending-dot', pending.length) -- cgit From 8fde8a8921135112ccfdd13ce6b009755b5f71ed Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 21 Jun 2016 13:56:04 -0700 Subject: Manually linted --- ui/app/accounts/account-panel.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'ui/app/accounts/account-panel.js') diff --git a/ui/app/accounts/account-panel.js b/ui/app/accounts/account-panel.js index 42d186201..53ccf7d2c 100644 --- a/ui/app/accounts/account-panel.js +++ b/ui/app/accounts/account-panel.js @@ -16,10 +16,8 @@ function NewComponent () { NewComponent.prototype.render = function () { const identity = this.props.identity - var mayBeFauceting = identity.mayBeFauceting var isSelected = this.props.selectedAddress === identity.address var account = this.props.accounts[identity.address] - var isFauceting = mayBeFauceting && account.balance === '0x0' const selectedClass = isSelected ? '.selected' : '' return ( -- cgit