From fab78f1610d05d67f686454d41b19084e3444238 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sun, 2 Aug 2026 11:40:26 -0700 Subject: [PATCH] Remove unused allowEdit/allowView props from WebsitesTable and its callers --- src/app/(main)/admin/users/[userId]/UserWebsites.tsx | 4 +--- src/app/(main)/websites/WebsitesDataTable.tsx | 12 +----------- src/app/(main)/websites/WebsitesTable.tsx | 4 +--- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/app/(main)/admin/users/[userId]/UserWebsites.tsx b/src/app/(main)/admin/users/[userId]/UserWebsites.tsx index eeb173e75..7146762b9 100644 --- a/src/app/(main)/admin/users/[userId]/UserWebsites.tsx +++ b/src/app/(main)/admin/users/[userId]/UserWebsites.tsx @@ -7,9 +7,7 @@ export function UserWebsites({ userId }) { return ( - {({ data }) => ( - - )} + {({ data }) => } ); } diff --git a/src/app/(main)/websites/WebsitesDataTable.tsx b/src/app/(main)/websites/WebsitesDataTable.tsx index e29106fc4..14089ee99 100644 --- a/src/app/(main)/websites/WebsitesDataTable.tsx +++ b/src/app/(main)/websites/WebsitesDataTable.tsx @@ -8,14 +8,10 @@ import { WebsitesTable } from './WebsitesTable'; export function WebsitesDataTable({ userId, teamId, - allowEdit = true, - allowView = true, showActions = true, }: { userId?: string; teamId?: string; - allowEdit?: boolean; - allowView?: boolean; showActions?: boolean; }) { const { user } = useLoginQuery(); @@ -36,13 +32,7 @@ export function WebsitesDataTable({ return ( {({ data }) => ( - + )} ); diff --git a/src/app/(main)/websites/WebsitesTable.tsx b/src/app/(main)/websites/WebsitesTable.tsx index 4b3e13ce3..825d02ff3 100644 --- a/src/app/(main)/websites/WebsitesTable.tsx +++ b/src/app/(main)/websites/WebsitesTable.tsx @@ -1,5 +1,5 @@ import { DataColumn, DataTable, type DataTableProps, Icon, Text } from '@umami/react-zen'; -import { useMemo, type ReactNode } from 'react'; +import { type ReactNode, useMemo } from 'react'; import { DateDistance } from '@/components/common/DateDistance'; import { LinkButton } from '@/components/common/LinkButton'; import { SortableLabel } from '@/components/common/SortableLabel'; @@ -10,8 +10,6 @@ import { WebsiteSparkline } from './WebsiteSparkline'; export interface WebsitesTableProps extends DataTableProps { showActions?: boolean; - allowEdit?: boolean; - allowView?: boolean; renderLink?: (row: any) => ReactNode; }