Update teams table props.

This commit is contained in:
Mike Cao 2024-02-04 21:44:22 -08:00
parent 36f207c97d
commit 926effb0e3
2 changed files with 9 additions and 3 deletions

View File

@ -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>
);

View File

@ -7,7 +7,7 @@ import LinkButton from 'components/common/LinkButton';
export function TeamsTable({
data = [],
allowEdit = true,
allowEdit = false,
showActions = true,
}: {
data: any[];