aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-08-01 10:56:51 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-08-24 07:44:44 +0800
commitfa8313f9036882e1a558d871f4e520da71ffaa03 (patch)
tree25959ed02415a1d63eec69d7f810407ee5399706 /ui
parent5de48c67a080f2681a005e364eefb9ea1d6b1e12 (diff)
downloadtangerine-wallet-browser-fa8313f9036882e1a558d871f4e520da71ffaa03.tar
tangerine-wallet-browser-fa8313f9036882e1a558d871f4e520da71ffaa03.tar.gz
tangerine-wallet-browser-fa8313f9036882e1a558d871f4e520da71ffaa03.tar.bz2
tangerine-wallet-browser-fa8313f9036882e1a558d871f4e520da71ffaa03.tar.lz
tangerine-wallet-browser-fa8313f9036882e1a558d871f4e520da71ffaa03.tar.xz
tangerine-wallet-browser-fa8313f9036882e1a558d871f4e520da71ffaa03.tar.zst
tangerine-wallet-browser-fa8313f9036882e1a558d871f4e520da71ffaa03.zip
Code cleanup
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/transaction-list-item/transaction-list-item.component.js7
-rw-r--r--ui/app/components/transaction-list/transaction-list.component.js37
2 files changed, 14 insertions, 30 deletions
diff --git a/ui/app/components/transaction-list-item/transaction-list-item.component.js b/ui/app/components/transaction-list-item/transaction-list-item.component.js
index 8c2a0d04c..928d531f0 100644
--- a/ui/app/components/transaction-list-item/transaction-list-item.component.js
+++ b/ui/app/components/transaction-list-item/transaction-list-item.component.js
@@ -12,7 +12,6 @@ import { hexToDecimal } from '../../helpers/conversions.util'
export default class TransactionListItem extends PureComponent {
static propTypes = {
history: PropTypes.object,
- methodData: PropTypes.object,
transaction: PropTypes.object,
ethTransactionAmount: PropTypes.string,
fiatDisplayValue: PropTypes.string,
@@ -32,11 +31,7 @@ export default class TransactionListItem extends PureComponent {
}
render () {
- const {
- transaction,
- ethTransactionAmount,
- fiatDisplayValue,
- } = this.props
+ const { transaction, ethTransactionAmount, fiatDisplayValue } = this.props
const { txParams = {} } = transaction
const nonce = hexToDecimal(txParams.nonce)
diff --git a/ui/app/components/transaction-list/transaction-list.component.js b/ui/app/components/transaction-list/transaction-list.component.js
index 48e731d24..d9b8e3cf8 100644
--- a/ui/app/components/transaction-list/transaction-list.component.js
+++ b/ui/app/components/transaction-list/transaction-list.component.js
@@ -30,14 +30,12 @@ export default class TransactionList extends PureComponent {
{ `${t('queue')} (${pendingTransactions.length})` }
</div>
{
- pendingTransactions.map(transaction => {
- return (
- <TransactionListItem
- transaction={transaction}
- key={transaction.id}
- />
- )
- })
+ pendingTransactions.map(transaction => (
+ <TransactionListItem
+ transaction={transaction}
+ key={transaction.id}
+ />
+ ))
}
</div>
)
@@ -48,16 +46,12 @@ export default class TransactionList extends PureComponent {
</div>
{
completedTransactions.length > 0
- ? (
- completedTransactions.map(transaction => {
- return (
- <TransactionListItem
- transaction={transaction}
- key={transaction.id}
- />
- )
- })
- )
+ ? completedTransactions.map(transaction => (
+ <TransactionListItem
+ transaction={transaction}
+ key={transaction.id}
+ />
+ ))
: this.renderEmpty()
}
</div>
@@ -78,12 +72,7 @@ export default class TransactionList extends PureComponent {
render () {
return (
<div className="transaction-list">
- {
- this.renderTransactions()
- // pendingTransactions.length + completedTransactions.length > 0
- // ? this.renderTransactions()
- // : this.renderEmpty()
- }
+ { this.renderTransactions() }
</div>
)
}