The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Payout details table fix (#3031)
Tim Wilson56c48510e68b
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-details-sheet.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-details-sheet.tsxindex e2e0295f30..149d17c1c4 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-details-sheet.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-details-sheet.tsx@@ -148,6 +148,11 @@ function PayoutDetailsSheetContent({ payout }: PayoutDetailsSheetProps) {</div>),},+ {+ id: "earnings",+ header: "Earnings",+ cell: ({ row }) => currencyFormatter(row.original.earnings / 100),+ },{id: "type",header: "Type",@@ -158,13 +163,7 @@ function PayoutDetailsSheetContent({ payout }: PayoutDetailsSheetProps) {<CommissionTypeBadge type={row.original.type ?? "sale"} />),},- {- id: "earnings",- header: "Earnings",- cell: ({ row }) => currencyFormatter(row.original.earnings / 100),- },],- columnPinning: { right: ["earnings"] },thClassName: (id) =>cn(id === "total" && "[&>div]:justify-end", "border-l-0"),tdClassName: (id) => cn(id === "total" && "text-right", "border-l-0"),diff --git a/packages/ui/src/table/table.tsx b/packages/ui/src/table/table.tsxindex 90dfaad41b..610bfbd3c6 100644--- a/packages/ui/src/table/table.tsx+++ b/packages/ui/src/table/table.tsx@@ -667,6 +667,7 @@ const getCommonPinningClassNames = (): string => {const isPinned = column.getIsPinned();return cn(+ isPinned && "bg-bg-default py-0",isPinned &&!isLastRow &&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]",