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 earnings table size

Steven Tey88bd9d616b63
diff --git a/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/earnings/earnings-table.tsx b/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/earnings/earnings-table.tsx
index ac6e12951f..3b596f8c0e 100644
--- a/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/earnings/earnings-table.tsx
+++ b/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/earnings/earnings-table.tsx
@@ -80,11 +80,12 @@ export function EarningsTablePartner({ limit }: { limit?: number }) {
id: "type",
header: "Type",
accessorKey: "type",
- meta: {
- filterParams: ({ getValue }) => ({
- type: getValue(),
- }),
- },
+ // TODO: add this back once we have a way to filter by type
+ // meta: {
+ // filterParams: ({ getValue }) => ({
+ // type: getValue(),
+ // }),
+ // },
cell: ({ row }) => <CommissionTypeBadge type={row.original.type} />,
},
{
@@ -113,6 +114,7 @@ export function EarningsTablePartner({ limit }: { limit?: number }) {
</CopyText>
</div>
),
+ size: 250,
},
{
id: "customer",
@@ -125,6 +127,7 @@ export function EarningsTablePartner({ limit }: { limit?: number }) {
},
cell: ({ row }) =>
row.original.customer ? row.original.customer.email : "-",
+ size: 250,
},
{
id: "amount",