mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Linted
This commit is contained in:
parent
f57cbe59fc
commit
17f3f90d80
@ -143,7 +143,7 @@ AccountDetailScreen.prototype.render = function () {
|
|||||||
style: {
|
style: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
}
|
},
|
||||||
}, [
|
}, [
|
||||||
h('img.cursor-pointer.color-orange', {
|
h('img.cursor-pointer.color-orange', {
|
||||||
src: 'images/key-32.png',
|
src: 'images/key-32.png',
|
||||||
|
@ -27,8 +27,7 @@ function ShiftListItem () {
|
|||||||
|
|
||||||
ShiftListItem.prototype.render = function () {
|
ShiftListItem.prototype.render = function () {
|
||||||
var props = this.props
|
var props = this.props
|
||||||
const { depositAddress, time, i, response } = props
|
const { response } = props
|
||||||
const { transaction } = response
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
h('.transaction-list-item.flex-row', {
|
h('.transaction-list-item.flex-row', {
|
||||||
@ -117,7 +116,6 @@ ShiftListItem.prototype.renderUtilComponents = function () {
|
|||||||
default:
|
default:
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ShiftListItem.prototype.renderInfo = function () {
|
ShiftListItem.prototype.renderInfo = function () {
|
||||||
|
@ -19,7 +19,7 @@ function TransactionListItem () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TransactionListItem.prototype.render = function () {
|
TransactionListItem.prototype.render = function () {
|
||||||
const { transaction, i, network } = this.props
|
const { transaction, network } = this.props
|
||||||
if (transaction.key === 'shapeshift') {
|
if (transaction.key === 'shapeshift') {
|
||||||
if (network === '1') return h(ShiftListItem, transaction)
|
if (network === '1') return h(ShiftListItem, transaction)
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@ const Component = require('react').Component
|
|||||||
const h = require('react-hyperscript')
|
const h = require('react-hyperscript')
|
||||||
const inherits = require('util').inherits
|
const inherits = require('util').inherits
|
||||||
const genAccountLink = require('../../lib/account-link')
|
const genAccountLink = require('../../lib/account-link')
|
||||||
const extension = require('../../../app/scripts/lib/extension')
|
|
||||||
|
|
||||||
const TransactionListItem = require('./transaction-list-item')
|
const TransactionListItem = require('./transaction-list-item')
|
||||||
|
|
||||||
@ -17,12 +16,11 @@ function TransactionList () {
|
|||||||
TransactionList.prototype.render = function () {
|
TransactionList.prototype.render = function () {
|
||||||
const { txsToRender, network, unconfMsgs, address } = this.props
|
const { txsToRender, network, unconfMsgs, address } = this.props
|
||||||
var shapeShiftTxList
|
var shapeShiftTxList
|
||||||
if (network === '1'){
|
if (network === '1') {
|
||||||
shapeShiftTxList = this.props.shapeShiftTxList
|
shapeShiftTxList = this.props.shapeShiftTxList
|
||||||
}
|
}
|
||||||
const transactions = !shapeShiftTxList ? txsToRender.concat(unconfMsgs) : txsToRender.concat(unconfMsgs, shapeShiftTxList)
|
const transactions = !shapeShiftTxList ? txsToRender.concat(unconfMsgs) : txsToRender.concat(unconfMsgs, shapeShiftTxList)
|
||||||
.sort((a, b) => b.time - a.time)
|
.sort((a, b) => b.time - a.time)
|
||||||
const accountLink = genAccountLink(address, network)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user