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.tsx

Steven Tey31859088b8d4
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 e1d969e22c..ac6e12951f 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
@@ -4,6 +4,7 @@ import usePartnerEarningsCount from "@/lib/swr/use-partner-earnings-count";
import useProgramEnrollment from "@/lib/swr/use-program-enrollment";
import { PartnerEarningsResponse } from "@/lib/types";
import FilterButton from "@/ui/analytics/events/filter-button";
+import { CommissionTypeBadge } from "@/ui/partners/commission-type-badge";
import { SaleStatusBadges } from "@/ui/partners/sale-status-badges";
import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";
import {
@@ -75,18 +76,17 @@ export function EarningsTablePartner({ limit }: { limit?: number }) {
</p>
),
},
- // TODO: add this back once we have a way to hide/show column visibility
- // {
- // id: "type",
- // header: "Type",
- // accessorKey: "type",
- // meta: {
- // filterParams: ({ getValue }) => ({
- // type: getValue(),
- // }),
- // },
- // cell: ({ row }) => <CommissionTypeBadge type={row.original.type} />,
- // },
+ {
+ id: "type",
+ header: "Type",
+ accessorKey: "type",
+ meta: {
+ filterParams: ({ getValue }) => ({
+ type: getValue(),
+ }),
+ },
+ cell: ({ row }) => <CommissionTypeBadge type={row.original.type} />,
+ },
{
id: "link",
header: "Link",