feature/default_network_editable
Alexander Tseung 7 years ago
commit 2240688fd4
  1. 7
      ui/app/components/shift-list-item.js
  2. 7
      ui/app/components/tx-list.js

@ -29,10 +29,7 @@ function ShiftListItem () {
}
ShiftListItem.prototype.render = function () {
const { selectedAddress, receivingAddress } = this.props
return (
selectedAddress === receivingAddress
? h('div.tx-list-item.tx-list-clickable', {
return h('div.tx-list-item.tx-list-clickable', {
style: {
paddingTop: '20px',
paddingBottom: '20px',
@ -61,8 +58,6 @@ ShiftListItem.prototype.render = function () {
this.renderInfo(),
this.renderUtilComponents(),
])
: null
)
}
function formatDate (date) {

@ -56,6 +56,7 @@ TxList.prototype.render = function () {
TxList.prototype.renderTransaction = function () {
const { txsToRender, conversionRate } = this.props
return txsToRender.length
? txsToRender.map((transaction, i) => this.renderTransactionListItem(transaction, conversionRate, i))
: [h(
@ -71,11 +72,7 @@ TxList.prototype.renderTransactionListItem = function (transaction, conversionRa
// refer to transaction-list.js:line 58
if (transaction.key === 'shapeshift') {
return h('div', {
key: `shapeshift${index}`,
}, [
h(ShiftListItem, transaction),
])
return h(ShiftListItem, { ...transaction, key: `shapeshift${index}` })
}
const props = {

Loading…
Cancel
Save