fix menu
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user