This commit is contained in:
2025-11-04 16:35:21 -03:00
parent 27e1e2b916
commit 8298190c49

View File

@@ -1,7 +1,9 @@
import type { Route } from './+types' import type { Route } from './+types'
import { useState } from 'react' import { useState } from 'react'
import { useForm } from 'react-hook-form'
import { Link } from 'react-router' import { Link } from 'react-router'
import { z } from 'zod'
import logo from '@/components/logo.svg' import logo from '@/components/logo.svg'
import { Button } from '@/components/ui/button' import { Button } from '@/components/ui/button'
@@ -18,8 +20,6 @@ import { Input } from '@/components/ui/input'
import { Label } from '@/components/ui/label' import { Label } from '@/components/ui/label'
import { isValidCPF } from '@brazilian-utils/brazilian-utils' import { isValidCPF } from '@brazilian-utils/brazilian-utils'
import { zodResolver } from '@hookform/resolvers/zod' import { zodResolver } from '@hookform/resolvers/zod'
import { useForm } from 'react-hook-form'
import { z } from 'zod'
const schema = z.object({ const schema = z.object({
name: z.string().trim().nonempty('Digite seu nome'), name: z.string().trim().nonempty('Digite seu nome'),