mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 12:29:35 +01:00
Update teams table props.
This commit is contained in:
parent
36f207c97d
commit
926effb0e3
@ -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>
|
||||
);
|
||||
|
@ -7,7 +7,7 @@ import LinkButton from 'components/common/LinkButton';
|
||||
|
||||
export function TeamsTable({
|
||||
data = [],
|
||||
allowEdit = true,
|
||||
allowEdit = false,
|
||||
showActions = true,
|
||||
}: {
|
||||
data: any[];
|
||||
|
Loading…
Reference in New Issue
Block a user