|
|
@ -25,38 +25,37 @@ class Payments extends Component { |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
{ |
|
|
|
payments.map((payment, index) => ( |
|
|
|
<li key={index} className={styles.payment}> |
|
|
|
<div className={styles.left}> |
|
|
|
<div className={styles.path}>{payment.path[0]}</div> |
|
|
|
payments.map((payment, index) => |
|
|
|
<li key={index} className={styles.payment}> |
|
|
|
<div className={styles.left}> |
|
|
|
<div className={styles.path}>{payment.path[0]}</div> |
|
|
|
</div> |
|
|
|
<div className={styles.center}> |
|
|
|
<div className={styles.date}> |
|
|
|
<Moment format="MMMM Do">{payment.creation_date * 1000}</Moment> |
|
|
|
</div> |
|
|
|
<div className={styles.center}> |
|
|
|
<div className={styles.date}> |
|
|
|
<Moment format="MMMM Do">{payment.creation_date * 1000}</Moment> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className={styles.right}> |
|
|
|
<span className={styles.fee}> |
|
|
|
</div> |
|
|
|
<div className={styles.right}> |
|
|
|
<span className={styles.fee}> |
|
|
|
{ |
|
|
|
ticker.currency === 'btc' ? |
|
|
|
btc.satoshisToBtc(payment.fee) |
|
|
|
: |
|
|
|
btc.satoshisToUsd(payment.fee, ticker.btcTicker.price_usd) |
|
|
|
} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div className={styles.right}> |
|
|
|
<span className={styles.value}> |
|
|
|
{ |
|
|
|
ticker.currency === 'btc' ? |
|
|
|
btc.satoshisToBtc(payment.fee) |
|
|
|
btc.satoshisToBtc(payment.value) |
|
|
|
: |
|
|
|
btc.satoshisToUsd(payment.fee, ticker.btcTicker.price_usd) |
|
|
|
btc.satoshisToUsd(payment.value, ticker.btcTicker.price_usd) |
|
|
|
} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
<div className={styles.right}> |
|
|
|
<span className={styles.value}> |
|
|
|
{ |
|
|
|
ticker.currency === 'btc' ? |
|
|
|
btc.satoshisToBtc(payment.value) |
|
|
|
: |
|
|
|
btc.satoshisToUsd(payment.value, ticker.btcTicker.price_usd) |
|
|
|
} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
) |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
) |
|
|
|
} |
|
|
|
</ul> |
|
|
|