bug
This commit is contained in:
@@ -25,6 +25,7 @@ import { authForm } from '../lib/form';
|
|||||||
const Login = () => {
|
const Login = () => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
|
const queryClient = useQueryClient();
|
||||||
const form = useForm<z.infer<typeof authForm>>({
|
const form = useForm<z.infer<typeof authForm>>({
|
||||||
resolver: zodResolver(authForm),
|
resolver: zodResolver(authForm),
|
||||||
defaultValues: {
|
defaultValues: {
|
||||||
@@ -32,7 +33,6 @@ const Login = () => {
|
|||||||
username: '',
|
username: '',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const queryClient = useQueryClient();
|
|
||||||
|
|
||||||
const { mutate, isPending } = useMutation({
|
const { mutate, isPending } = useMutation({
|
||||||
mutationFn: (body: {
|
mutationFn: (body: {
|
||||||
|
|||||||
Reference in New Issue
Block a user