import React from "react"; import LinkTransaction from "component/linkTransaction"; import { CreditAmount } from "component/common"; import DateTime from "component/dateTime"; import Link from "component/link"; import lbryuri from "lbryuri"; import * as txnTypes from "constants/transaction_types"; class TransactionListItem extends React.PureComponent { abandonClaim() { const { txid, nout } = this.props.transaction; this.props.revokeClaim(txid, nout); } getLink(type) { if (type == txnTypes.TIP) { return ( ); } else { return ( ); } } capitalize(string) { return string.charAt(0).toUpperCase() + string.slice(1); } render() { const { reward, transaction, isRevokeable } = this.props; const { amount, claim_id: claimId, claim_name: name, date, fee, txid, type, nout, } = transaction; const dateFormat = { month: "short", day: "numeric", year: "numeric", }; return (