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.

CommissionTypeBadge

Steven Teyf27fc9549ca2
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 810577bbd9..c19b76afb9 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
@@ -2,7 +2,7 @@
import useProgramEnrollment from "@/lib/swr/use-program-enrollment";
import { PartnerEarningsResponse } from "@/lib/types";
-import { EarningsTypeBadge } from "@/ui/partners/earnings-type-badge";
+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 SimpleDateRangePicker from "@/ui/shared/simple-date-range-picker";
@@ -75,7 +75,7 @@ export function EarningsTablePartner({ limit }: { limit?: number }) {
id: "type",
header: "Type",
accessorKey: "type",
- cell: ({ row }) => <EarningsTypeBadge type={row.original.type} />,
+ cell: ({ row }) => <CommissionTypeBadge type={row.original.type} />,
},
{
id: "saleAmount",
diff --git a/apps/web/ui/partners/earnings-type-badge.tsx b/apps/web/ui/partners/commission-type-badge.tsx
similarity index 93%
rename from apps/web/ui/partners/earnings-type-badge.tsx
rename to apps/web/ui/partners/commission-type-badge.tsx
index e817f07729..41923ff6c3 100644
--- a/apps/web/ui/partners/earnings-type-badge.tsx
+++ b/apps/web/ui/partners/commission-type-badge.tsx
@@ -9,7 +9,7 @@ const iconsMap = {
sale: InvoiceDollar,
};
-export const EarningsTypeBadge = ({
+export const CommissionTypeBadge = ({
type,
}: {
type: z.infer<typeof PartnerCommissionSchema>["type"];