Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Update teams table props.
Mike Cao926effb0e3b9
diff --git a/src/app/(main)/settings/teams/TeamsDataTable.tsx b/src/app/(main)/settings/teams/TeamsDataTable.tsxindex e7c9fc3a7..c48617f25 100644--- a/src/app/(main)/settings/teams/TeamsDataTable.tsx+++ b/src/app/(main)/settings/teams/TeamsDataTable.tsx@@ -3,13 +3,19 @@ import DataTable from 'components/common/DataTable';import TeamsTable from 'app/(main)/settings/teams/TeamsTable';import { useTeams } from 'components/hooks';-export function TeamsDataTable() {+export function TeamsDataTable({+ allowEdit,+ showActions,+}: {+ allowEdit?: boolean;+ showActions?: boolean;+}) {const queryResult = useTeams();return (<DataTable queryResult={queryResult}>{({ data }) => {- return <TeamsTable data={data} />;+ return <TeamsTable data={data} allowEdit={allowEdit} showActions={showActions} />;}}</DataTable>);diff --git a/src/app/(main)/settings/teams/TeamsTable.tsx b/src/app/(main)/settings/teams/TeamsTable.tsxindex 3ee0ecc34..76778271f 100644--- a/src/app/(main)/settings/teams/TeamsTable.tsx+++ b/src/app/(main)/settings/teams/TeamsTable.tsx@@ -7,7 +7,7 @@ import LinkButton from 'components/common/LinkButton';export function TeamsTable({data = [],- allowEdit = true,+ allowEdit = false,showActions = true,}: {data: any[];