mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
New admin section.
This commit is contained in:
parent
b78ff3b477
commit
ce1f6c3618
44 changed files with 515 additions and 157 deletions
|
|
@ -13,7 +13,7 @@ import {
|
|||
Row,
|
||||
Box,
|
||||
} from '@umami/react-zen';
|
||||
import { useLoginQuery, useMessages, useTeamsQuery, useNavigation } from '@/components/hooks';
|
||||
import { useLoginQuery, useMessages, useUserTeamsQuery, useNavigation } from '@/components/hooks';
|
||||
import { Chevron, User, Users } from '@/components/icons';
|
||||
|
||||
export function TeamsButton({
|
||||
|
|
@ -25,7 +25,7 @@ export function TeamsButton({
|
|||
}) {
|
||||
const { user } = useLoginQuery();
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { data } = useTeamsQuery(user.id);
|
||||
const { data } = useUserTeamsQuery(user.id);
|
||||
const { teamId } = useNavigation();
|
||||
const router = useRouter();
|
||||
const team = data?.data?.find(({ id }) => id === teamId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue