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.

remove chartActivityIconMode

Steven Teybd1872ebb089
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/customers/(index)/page-client.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/customers/(index)/page-client.tsx
index 022e630bf7..7525d2d32e 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/customers/(index)/page-client.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/programs/[programSlug]/(enrolled)/customers/(index)/page-client.tsx
@@ -94,12 +94,7 @@ export function ProgramCustomersPageClient() {
enableHiding: false,
minSize: 250,
cell: ({ row }) => {
- return (
- <CustomerRowItem
- customer={row.original}
- chartActivityIconMode="visible"
- />
- );
+ return <CustomerRowItem customer={row.original} />;
},
},
{
diff --git a/apps/web/ui/customers/customer-row-item.tsx b/apps/web/ui/customers/customer-row-item.tsx
index ad5d03abba..839a49a31d 100644
--- a/apps/web/ui/customers/customer-row-item.tsx
+++ b/apps/web/ui/customers/customer-row-item.tsx
@@ -1,6 +1,5 @@
import { generateRandomName } from "@/lib/names";
import { FilterIconCell } from "@/ui/shared/filter-icon-cell";
-import { ChartActivity2 } from "@dub/ui";
import { cn } from "@dub/utils";
import Link from "next/link";
import React, { ComponentProps } from "react";
@@ -11,7 +10,6 @@ export function CustomerRowItem({
href,
className,
avatarClassName,
- chartActivityIconMode = "hiddenOnHover",
filterSet,
}: {
customer: {
@@ -23,7 +21,6 @@ export function CustomerRowItem({
href?: string;
className?: string;
avatarClassName?: string;
- chartActivityIconMode?: "visible" | "hidden" | "hiddenOnHover";
filterSet?: Record<string, any>;
}) {
const display = customer.email || customer.name || generateRandomName();
@@ -53,15 +50,6 @@ export function CustomerRowItem({
)}
<span className="truncate">{display}</span>
</div>
- {href && chartActivityIconMode !== "hidden" && (
- <ChartActivity2
- className={cn(
- "size-3.5 shrink-0 transition-all",
- chartActivityIconMode === "hiddenOnHover" &&
- "group-hover:-translate-x-3 group-hover:opacity-0",
- )}
- />
- )}
</Wrapper>
);
}
diff --git a/apps/web/ui/customers/customers-table/customers-table.tsx b/apps/web/ui/customers/customers-table/customers-table.tsx
index d91a0a0522..ab63cf2781 100644
--- a/apps/web/ui/customers/customers-table/customers-table.tsx
+++ b/apps/web/ui/customers/customers-table/customers-table.tsx
@@ -145,12 +145,7 @@ export function CustomersTable({
enableHiding: false,
minSize: 250,
cell: ({ row }) => {
- return (
- <CustomerRowItem
- customer={row.original}
- chartActivityIconMode="visible"
- />
- );
+ return <CustomerRowItem customer={row.original} />;
},
},
{
diff --git a/apps/web/ui/partners/fraud-risks/fraud-events-tables/fraud-paid-traffic-detected-table.tsx b/apps/web/ui/partners/fraud-risks/fraud-events-tables/fraud-paid-traffic-detected-table.tsx
index 4bc0ae087e..5dae2eb618 100644
--- a/apps/web/ui/partners/fraud-risks/fraud-events-tables/fraud-paid-traffic-detected-table.tsx
+++ b/apps/web/ui/partners/fraud-risks/fraud-events-tables/fraud-paid-traffic-detected-table.tsx
@@ -85,7 +85,6 @@ export function FraudPaidTrafficDetectedTable() {
<CustomerRowItem
customer={row.original.customer}
href={`/${workspaceSlug}/program/customers/${row.original.customer.id}`}
- chartActivityIconMode="hidden"
/>
) : (
"-"