mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Team delete functionality.
This commit is contained in:
parent
835289a1f8
commit
0ce2d1fbfc
11 changed files with 128 additions and 56 deletions
|
|
@ -2,7 +2,7 @@ import { Loading } from 'react-basics';
|
|||
import useApi from 'hooks/useApi';
|
||||
import TeamMembersTable from 'components/pages/settings/teams/TeamMembersTable';
|
||||
|
||||
export default function TeamMembers({ teamId }) {
|
||||
export default function TeamMembers({ teamId, readOnly }) {
|
||||
const { get, useQuery } = useApi();
|
||||
const { data, isLoading } = useQuery(['teams:users', teamId], () =>
|
||||
get(`/teams/${teamId}/users`),
|
||||
|
|
@ -12,5 +12,5 @@ export default function TeamMembers({ teamId }) {
|
|||
return <Loading icon="dots" position="block" />;
|
||||
}
|
||||
|
||||
return <TeamMembersTable data={data} />;
|
||||
return <TeamMembersTable data={data} readOnly={readOnly} />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue