Skip to content

Commit b0f4257

Browse files
committed
small tweak
1 parent 8988afb commit b0f4257

File tree

1 file changed

+8
-2
lines changed
  • apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/payouts

1 file changed

+8
-2
lines changed

apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/payouts/payout-table.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
useTable,
2424
} from "@dub/ui";
2525
import { Dots, MoneyBill2, MoneyBills2 } from "@dub/ui/icons";
26-
import { cn, formatDate, timeAgo } from "@dub/utils";
26+
import { cn, formatDate } from "@dub/utils";
2727
import { fetcher } from "@dub/utils/src/functions/fetcher";
2828
import { Row } from "@tanstack/react-table";
2929
import { Command } from "cmdk";
@@ -129,7 +129,13 @@ export function PayoutTable() {
129129
id: "paidAt",
130130
header: "Paid",
131131
cell: ({ row }) =>
132-
row.original.paidAt ? timeAgo(row.original.paidAt) : "-",
132+
row.original.paidAt
133+
? formatDate(row.original.paidAt, {
134+
month: "short",
135+
day: "numeric",
136+
year: undefined,
137+
})
138+
: "-",
133139
},
134140
{
135141
id: "amount",

0 commit comments

Comments
 (0)