mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
Linted
This commit is contained in:
parent
ce463f3aff
commit
9e0d9b88cc
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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'),
|
||||
]),
|
||||
|
||||
])
|
||||
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user