Skip to content

Commit

Permalink
[web] Rename Tx to TxItem
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjooiopa committed Apr 27, 2024
1 parent 6e8df4f commit f3c4eef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/Transactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const formatDateTime = (ts: number) => {
return format(new Date(ts), f)
}

const Tx = ({ amountSat, description, createdAt, type }: Transaction) => {
const TxItem = ({ amountSat, description, createdAt, type }: Transaction) => {
const amountColor = type === TransactionType.PAYMENT_SENT ? 'text-gray-100' : 'text-green-500'
const displayAmount = type === TransactionType.PAYMENT_SENT ? `-${amountSat}` : `+${amountSat}`
const displayDescription = description || (type === TransactionType.PAYMENT_SENT ? 'Sent' : 'Received')
Expand Down Expand Up @@ -73,7 +73,7 @@ const Transactions: FC<{}> = () => {
return (
<div>
{payments.map((tx, i) => (
<Tx key={i} {...tx} />
<TxItem key={i} {...tx} />
))}

{hasNext && (
Expand Down

0 comments on commit f3c4eef

Please sign in to comment.