Skip to content

Commit

Permalink
chore: use cn util
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jul 8, 2024
1 parent d414ffb commit 58d4d95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/TransactionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ function TransactionItem({ tx }: Props) {
<div className="flex ml-auto text-right space-x-3 shrink-0 dark:text-white">
<div className="flex items-center gap-2 text-xl">
<p
className={`font-semibold ${
className={cn(
"font-semibold",
type == "incoming" && "text-green-600 dark:color-green-400"
}`}
)}
>
{type == "outgoing" ? "-" : "+"} {Math.floor(tx.amount / 1000)}
</p>
Expand Down

0 comments on commit 58d4d95

Please sign in to comment.