This commit is contained in:
2025-12-03 01:24:52 -03:00
parent 3a49b13cb9
commit 38c49ff370
21 changed files with 133 additions and 73 deletions

View File

@@ -56,9 +56,7 @@ export async function action({ request, context }: Route.ActionArgs) {
try {
const r = await fetch(issuerUrl.toString(), {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
headers: new Headers({ 'Content-Type': 'application/json' }),
body: JSON.stringify(formData)
})
@@ -88,10 +86,7 @@ export async function action({ request, context }: Route.ActionArgs) {
export default function Index({}: Route.ComponentProps) {
const [show, setShow] = useState(false)
const fetcher = useFetcher()
const form = useForm({
resolver: zodResolver(schema)
})
const form = useForm({ resolver: zodResolver(schema) })
const { control, handleSubmit, formState, setError } = form
const onSubmit = async (data: Schema) => {