mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
Renamed query hooks. Fixed conversion bugs.
This commit is contained in:
parent
adca3c36d0
commit
7886c3f393
110 changed files with 423 additions and 489 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { useLogin, useMessages, useModified } from '@/components/hooks';
|
||||
import { useLoginQuery, useMessages, useModified } from '@/components/hooks';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { Button, Icon, Icons, Modal, DialogTrigger, Dialog, Text } from '@umami/react-zen';
|
||||
import { TeamLeaveForm } from './TeamLeaveForm';
|
||||
|
|
@ -6,7 +6,7 @@ import { TeamLeaveForm } from './TeamLeaveForm';
|
|||
export function TeamLeaveButton({ teamId, teamName }: { teamId: string; teamName: string }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const router = useRouter();
|
||||
const { user } = useLogin();
|
||||
const { user } = useLoginQuery();
|
||||
const { touch } = useModified();
|
||||
|
||||
const handleLeave = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue