Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update customer-table.tsx

Tim Wilsonf45aedbcb742
diff --git a/apps/web/ui/customers/customer-table/customer-table.tsx b/apps/web/ui/customers/customer-table/customer-table.tsx
index bfb517445c..767ffad2c8 100644
--- a/apps/web/ui/customers/customer-table/customer-table.tsx
+++ b/apps/web/ui/customers/customer-table/customer-table.tsx
@@ -19,6 +19,7 @@ import {
MenuItem,
Popover,
Table,
+ TimestampTooltip,
useColumnVisibility,
useCopyToClipboard,
usePagination,
@@ -171,7 +172,18 @@ export function CustomerTable() {
{
id: "createdAt",
header: "Created",
- accessorFn: (d) => formatDate(d.createdAt, { month: "short" }),
+ cell: ({ row }) => (
+ <TimestampTooltip
+ timestamp={row.original.createdAt}
+ rows={["local"]}
+ side="left"
+ delayDuration={150}
+ >
+ <span>
+ {formatDate(row.original.createdAt, { month: "short" })}
+ </span>
+ </TimestampTooltip>
+ ),
},
{
id: "link",