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.

Add commission column to sales table

Tim Wilson6ac9276896cb
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/sales/sale-table.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/sales/sale-table.tsx
index 398d98b7b1..c2c1438063 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/sales/sale-table.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/sales/sale-table.tsx
@@ -129,6 +129,15 @@ const SaleTableBusinessInner = memo(
maximumFractionDigits: 2,
}),
},
+ {
+ id: "commission",
+ header: "Commission",
+ accessorFn: (d) =>
+ currencyFormatter(d.earnings / 100, {
+ minimumFractionDigits: 2,
+ maximumFractionDigits: 2,
+ }),
+ },
{
header: "Status",
cell: ({ row }) => {