|
|
@ -1,6 +1,5 @@ |
|
|
|
import React, { PureComponent } from 'react' |
|
|
|
import React, { PureComponent } from 'react' |
|
|
|
import PropTypes from 'prop-types' |
|
|
|
import PropTypes from 'prop-types' |
|
|
|
import Media from 'react-media' |
|
|
|
|
|
|
|
import Identicon from '../identicon' |
|
|
|
import Identicon from '../identicon' |
|
|
|
import TransactionStatus from '../transaction-status' |
|
|
|
import TransactionStatus from '../transaction-status' |
|
|
|
import TransactionAction from '../transaction-action' |
|
|
|
import TransactionAction from '../transaction-action' |
|
|
@ -46,19 +45,11 @@ export default class TransactionListItem extends PureComponent { |
|
|
|
className="transaction-list-item" |
|
|
|
className="transaction-list-item" |
|
|
|
onClick={this.handleClick} |
|
|
|
onClick={this.handleClick} |
|
|
|
> |
|
|
|
> |
|
|
|
<div className="transaction-list-item__identicon-wrapper"> |
|
|
|
|
|
|
|
<Media query="(max-width: 575px)"> |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
matches => ( |
|
|
|
|
|
|
|
<Identicon |
|
|
|
<Identicon |
|
|
|
|
|
|
|
className="transaction-list-item__identicon" |
|
|
|
address={txParams.to} |
|
|
|
address={txParams.to} |
|
|
|
diameter={matches ? 26 : 34} |
|
|
|
diameter={34} |
|
|
|
/> |
|
|
|
/> |
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
</Media> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="transaction-list-item__action-block"> |
|
|
|
|
|
|
|
<TransactionAction |
|
|
|
<TransactionAction |
|
|
|
transaction={transaction} |
|
|
|
transaction={transaction} |
|
|
|
className="transaction-list-item__action" |
|
|
|
className="transaction-list-item__action" |
|
|
@ -66,17 +57,23 @@ export default class TransactionListItem extends PureComponent { |
|
|
|
<div className="transaction-list-item__nonce"> |
|
|
|
<div className="transaction-list-item__nonce"> |
|
|
|
{ `#${nonce} - ${formatDate(transaction.time)}` } |
|
|
|
{ `#${nonce} - ${formatDate(transaction.time)}` } |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<TransactionStatus |
|
|
|
<TransactionStatus status={transaction.status} /> |
|
|
|
className="transaction-list-item__status" |
|
|
|
<div className="transaction-list-item__transaction-amounts"> |
|
|
|
status={transaction.status} |
|
|
|
<div className="transaction-list-item__primary-transaction-amount"> |
|
|
|
/> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className="transaction-list-item__amount transaction-list-item__amount--primary" |
|
|
|
|
|
|
|
title={`-${fiatDisplayValue}`} |
|
|
|
|
|
|
|
> |
|
|
|
{ `-${fiatDisplayValue}` } |
|
|
|
{ `-${fiatDisplayValue}` } |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="transaction-list-item__secondary-transaction-amount"> |
|
|
|
<div |
|
|
|
|
|
|
|
className="transaction-list-item__amount transaction-list-item__amount--secondary" |
|
|
|
|
|
|
|
title={`-${ethTransactionAmount} ETH`} |
|
|
|
|
|
|
|
> |
|
|
|
{ `-${ethTransactionAmount} ETH` } |
|
|
|
{ `-${ethTransactionAmount} ETH` } |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|