diff --git a/src/app/(main)/settings/teams/TeamsTable.tsx b/src/app/(main)/settings/teams/TeamsTable.tsx
index e35d0412..3ee0ecc3 100644
--- a/src/app/(main)/settings/teams/TeamsTable.tsx
+++ b/src/app/(main)/settings/teams/TeamsTable.tsx
@@ -5,7 +5,15 @@ import Icons from 'components/icons';
import { ROLES } from 'lib/constants';
import LinkButton from 'components/common/LinkButton';
-export function TeamsTable({ data = [] }: { data: any[] }) {
+export function TeamsTable({
+ data = [],
+ allowEdit = true,
+ showActions = true,
+}: {
+ data: any[];
+ allowEdit?: boolean;
+ showActions?: boolean;
+}) {
const { formatMessage, labels } = useMessages();
const { user } = useLogin();
const breakpoint = useBreakpoint();
@@ -29,22 +37,24 @@ export function TeamsTable({ data = [] }: { data: any[] }) {
const isOwner = user.id === owner?.userId;
return (
- <>
- {isOwner && (
-
+ showActions && (
+ <>
+ {allowEdit && isOwner && (
+
+
+
+
+ {formatMessage(labels.edit)}
+
+ )}
+
-
+
- {formatMessage(labels.edit)}
+ {formatMessage(labels.switch)}
- )}
-
-
-
-
- {formatMessage(labels.switch)}
-
- >
+ >
+ )
);
}}
diff --git a/src/app/(main)/settings/websites/WebsitesTable.tsx b/src/app/(main)/settings/websites/WebsitesTable.tsx
index 6486babe..8460b14d 100644
--- a/src/app/(main)/settings/websites/WebsitesTable.tsx
+++ b/src/app/(main)/settings/websites/WebsitesTable.tsx
@@ -46,7 +46,7 @@ export function WebsitesTable({
)}
{allowView && (
-
+