Skip to content

Commit

Permalink
Fix income color
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed May 13, 2024
1 parent 662f697 commit 8f815a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -26,7 +26,7 @@ export function TransactionListItem({ transaction, disabled }: Props) {
className={cn(
"text-sm",
disabled && "skeleton-box",
transaction?.category === "income" && "text-[#00C969]"
row.original.category?.slug === "income" && "text-[#00C969]"
)}
>
{transaction.name}
Expand All @@ -37,7 +37,7 @@ export function TransactionListItem({ transaction, disabled }: Props) {
className={cn(
"text-sm",
disabled && "skeleton-box",
transaction?.category === "income" && "text-[#00C969]"
row.original.category?.slug === "income" && "text-[#00C969]"
)}
>
<FormatAmount
Expand Down
4 changes: 2 additions & 2 deletions apps/dashboard/src/components/tables/transactions/columns.tsx
Expand Up @@ -100,7 +100,7 @@ export const columns: ColumnDef<Transaction>[] = [
<TooltipTrigger asChild>
<span
className={cn(
row.original.category === "income" && "text-[#00C969]"
row.original.category?.slug === "income" && "text-[#00C969]"
)}
>
<div className="flex space-x-2 items-center">
Expand Down Expand Up @@ -135,7 +135,7 @@ export const columns: ColumnDef<Transaction>[] = [
<span
className={cn(
"text-sm",
row.original.category === "income" && "text-[#00C969]"
row.original.category?.slug === "income" && "text-[#00C969]"
)}
>
<FormatAmount
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/transaction-details.tsx
Expand Up @@ -194,7 +194,7 @@ export function TransactionDetails({
<span
className={cn(
"text-4xl font-mono",
data?.category === "income" && "text-[#00C969]"
data?.category?.slug === "income" && "text-[#00C969]"
)}
>
<FormatAmount
Expand Down

0 comments on commit 8f815a8

Please sign in to comment.