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 TeamsTable from 'app/(main)/settings/teams/TeamsTable';
|
||||||
import { useTeams } from 'components/hooks';
|
import { useTeams } from 'components/hooks';
|
||||||
|
|
||||||
export function TeamsDataTable() {
|
export function TeamsDataTable({
|
||||||
|
allowEdit,
|
||||||
|
showActions,
|
||||||
|
}: {
|
||||||
|
allowEdit?: boolean;
|
||||||
|
showActions?: boolean;
|
||||||
|
}) {
|
||||||
const queryResult = useTeams();
|
const queryResult = useTeams();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DataTable queryResult={queryResult}>
|
<DataTable queryResult={queryResult}>
|
||||||
{({ data }) => {
|
{({ data }) => {
|
||||||
return <TeamsTable data={data} />;
|
return <TeamsTable data={data} allowEdit={allowEdit} showActions={showActions} />;
|
||||||
}}
|
}}
|
||||||
</DataTable>
|
</DataTable>
|
||||||
);
|
);
|
||||||
|
@ -7,7 +7,7 @@ import LinkButton from 'components/common/LinkButton';
|
|||||||
|
|
||||||
export function TeamsTable({
|
export function TeamsTable({
|
||||||
data = [],
|
data = [],
|
||||||
allowEdit = true,
|
allowEdit = false,
|
||||||
showActions = true,
|
showActions = true,
|
||||||
}: {
|
}: {
|
||||||
data: any[];
|
data: any[];
|
||||||
|
Loading…
Reference in New Issue
Block a user