aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-07 13:51:28 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-07 13:51:28 +0800
commit9e0d9b88ccf4348ab9ac21f8fc3d64738dac5b40 (patch)
treec582c6a3a528ab77959e77b2306834e7a77eb657
parentce463f3aff07c3cb73370cc1446a6b64f91ceb05 (diff)
downloadtangerine-wallet-browser-9e0d9b88ccf4348ab9ac21f8fc3d64738dac5b40.tar
tangerine-wallet-browser-9e0d9b88ccf4348ab9ac21f8fc3d64738dac5b40.tar.gz
tangerine-wallet-browser-9e0d9b88ccf4348ab9ac21f8fc3d64738dac5b40.tar.bz2
tangerine-wallet-browser-9e0d9b88ccf4348ab9ac21f8fc3d64738dac5b40.tar.lz
tangerine-wallet-browser-9e0d9b88ccf4348ab9ac21f8fc3d64738dac5b40.tar.xz
tangerine-wallet-browser-9e0d9b88ccf4348ab9ac21f8fc3d64738dac5b40.tar.zst
tangerine-wallet-browser-9e0d9b88ccf4348ab9ac21f8fc3d64738dac5b40.zip
Linted
-rw-r--r--ui/app/components/mini-account-panel.js29
-rw-r--r--ui/app/components/pending-tx.js6
2 files changed, 6 insertions, 29 deletions
diff --git a/ui/app/components/mini-account-panel.js b/ui/app/components/mini-account-panel.js
index e8d0debad..1ec7b4d41 100644
--- a/ui/app/components/mini-account-panel.js
+++ b/ui/app/components/mini-account-panel.js
@@ -2,8 +2,6 @@ const inherits = require('util').inherits
const Component = require('react').Component
const h = require('react-hyperscript')
const Identicon = require('./identicon')
-const formatBalance = require('../util').formatBalance
-const TransactionIcon = require('./transaction-list-item-icon')
module.exports = AccountPanel
@@ -16,7 +14,6 @@ function AccountPanel () {
AccountPanel.prototype.render = function () {
var props = this.props
var picOrder = props.picOrder || 'left'
- var isFauceting = props.isFauceting
const { attrs, imageSeed } = props
return (
@@ -39,7 +36,7 @@ AccountPanel.prototype.render = function () {
},
}, [
- props.attrs.map((attr) => {
+ attrs.map((attr) => {
return h('span.font-small', {
key: `mini-${attr}`,
style: {
@@ -47,14 +44,12 @@ AccountPanel.prototype.render = function () {
},
}, attr)
}),
-
]),
-
])
)
}
-AccountPanel.prototype.genIcon= function(seed, picOrder) {
+AccountPanel.prototype.genIcon = function (seed, picOrder) {
const props = this.props
// When there is no seed value, this is a contract creation.
@@ -63,14 +58,14 @@ AccountPanel.prototype.genIcon= function(seed, picOrder) {
return h('.identicon-wrapper.flex-column.select-none', {
style: {
order: picOrder === 'left' ? 1 : 3,
- },
+ },
}, [
h('i.fa.fa-file-text-o.fa-lg', {
style: {
fontSize: '42px',
transform: 'translate(0px, -16px)',
},
- })
+ }),
])
}
@@ -87,19 +82,3 @@ AccountPanel.prototype.genIcon= function(seed, picOrder) {
])
}
-function balanceOrFaucetingIndication (account, isFauceting) {
- // Temporarily deactivating isFauceting indication
- // because it shows fauceting for empty restored accounts.
- if (/* isFauceting*/ false) {
- return {
- key: 'Account is auto-funding.',
- value: 'Please wait.',
- }
- } else {
- return {
- key: 'BALANCE',
- value: formatBalance(account.balance),
- }
- }
-}
-
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 01225f646..77dba87ee 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -36,7 +36,7 @@ PendingTx.prototype.render = function () {
h('.flex-row.flex-space-around', {
style: {
marginTop: '14px',
- }
+ },
}, [
h('button', {
onClick: state.cancelTransaction,
@@ -45,9 +45,7 @@ PendingTx.prototype.render = function () {
onClick: state.sendTransaction,
}, 'Approve'),
]),
-
])
-
)
-
}
+