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 ChartActivity2

Steven Tey094ab0f3dc2b
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 a67d6f3d57..3f1d61d0a9 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
@@ -16,7 +16,7 @@ import {
useRouterStuff,
useTable,
} from "@dub/ui";
-import { CircleDollar } from "@dub/ui/icons";
+import { ChartActivity2, CircleDollar } from "@dub/ui/icons";
import {
currencyFormatter,
fetcher,
@@ -131,6 +131,7 @@ export function EarningsTablePartner({ limit }: { limit?: number }) {
className="flex w-full items-center justify-between gap-2 px-4 py-2.5 transition-colors hover:bg-stone-100"
>
{row.original.customer.email}
+ <ChartActivity2 className="size-3.5 shrink-0" />
</Link>
) : (
"-"
diff --git a/apps/web/ui/analytics/events/customer-row-item.tsx b/apps/web/ui/analytics/events/customer-row-item.tsx
index 78d325661a..f5ed182be1 100644
--- a/apps/web/ui/analytics/events/customer-row-item.tsx
+++ b/apps/web/ui/analytics/events/customer-row-item.tsx
@@ -1,13 +1,12 @@
import { generateRandomName } from "@/lib/names";
import useWorkspace from "@/lib/swr/use-workspace";
import { Customer } from "@/lib/types";
-import { ChartActivity2, useRouterStuff } from "@dub/ui";
+import { ChartActivity2 } from "@dub/ui";
import Link from "next/link";
export function CustomerRowItem({ customer }: { customer: Customer }) {
const { slug } = useWorkspace();
const display = customer.email || customer.name || generateRandomName();
- const { queryParams } = useRouterStuff();
return (
<>
diff --git a/apps/web/ui/customers/customer-sales-table.tsx b/apps/web/ui/customers/customer-sales-table.tsx
index dfaf84061b..4d24dc50d9 100644
--- a/apps/web/ui/customers/customer-sales-table.tsx
+++ b/apps/web/ui/customers/customer-sales-table.tsx
@@ -110,7 +110,7 @@ export function CustomerSalesTable({
<div className="flex h-32 w-full animate-pulse rounded-lg border border-transparent bg-neutral-100" />
) : !sales?.length ? (
<div className="border-border-subtle flex h-32 w-full items-center justify-center rounded-lg border text-xs text-neutral-500">
- {sales?.length === 0 ? "No earnings yet" : "Failed to load earnings"}
+ {sales?.length === 0 ? "No sales yet" : "Failed to load sales"}
</div>
) : (
<>