diff --git a/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_profissao/useGTBProfissaoReadHook.ts b/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_profissao/useGTBProfissaoReadHook.ts index 6033859..6bd2c60 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_profissao/useGTBProfissaoReadHook.ts +++ b/src/app/(protected)/(cadastros)/cadastros/_hooks/g_tb_profissao/useGTBProfissaoReadHook.ts @@ -6,7 +6,7 @@ import GTBProfissaoIndexService from "../../_services/g_tb_profissao/GTBProfissa export const useGTBProfissaoReadHook = () => { const { setResponse } = useResponse(); - const [gTBProfissao, setGTBProfissao] = useState(null); + const [gTBProfissao, setGTBProfissao] = useState([]); const fetchGTBProfissao = async () => { diff --git a/src/components/login-form.tsx b/src/components/login-form.tsx index 888204b..602127c 100644 --- a/src/components/login-form.tsx +++ b/src/components/login-form.tsx @@ -5,7 +5,7 @@ import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { Card, CardContent } from "@/components/ui/card" import { Input } from "@/components/ui/input" -import { UsuarioFormSchema } from "@/app/(protected)/(administrativo)/_schemas/GUsuarioSchema" +import { GUsuarioSchema } from "@/app/(protected)/(administrativo)/_schemas/GUsuarioSchema" import z from "zod" import { zodResolver } from "@hookform/resolvers/zod" import GUsuarioLoginService from "@/app/(protected)/(administrativo)/_services/g_usuario/GUsuarioLogin" @@ -20,7 +20,7 @@ import { FormMessage } from "./ui/form" -type FormValues = z.infer +type FormValues = z.infer export function LoginForm({ className, @@ -28,7 +28,7 @@ export function LoginForm({ }: React.ComponentProps<"div">) { const form = useForm({ - resolver: zodResolver(UsuarioFormSchema), + resolver: zodResolver(GUsuarioSchema), defaultValues: { login: '', senha_api: ''