mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
Updated teams button.
This commit is contained in:
parent
8048bc7866
commit
44393472cf
12 changed files with 46 additions and 55 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import DataTable from 'components/common/DataTable';
|
||||
import TeamsTable from 'app/(main)/settings/teams/TeamsTable';
|
||||
import { useTeams } from 'components/hooks';
|
||||
import { useLogin, useTeams } from 'components/hooks';
|
||||
|
||||
export function TeamsDataTable({
|
||||
allowEdit,
|
||||
|
|
@ -9,7 +9,8 @@ export function TeamsDataTable({
|
|||
allowEdit?: boolean;
|
||||
showActions?: boolean;
|
||||
}) {
|
||||
const queryResult = useTeams();
|
||||
const { user } = useLogin();
|
||||
const queryResult = useTeams(user.id);
|
||||
|
||||
return (
|
||||
<DataTable queryResult={queryResult}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue