const form = useAppForm({
defaultValues: {
// environmentId: activeEnvironment?.id ?? "",
name: "",
lastName: "",
email: "",
mobile: "",
country: "TH",
clientReferenceId: "",
} as CustomerCreateForm,
validators: {
onSubmit: CustomerInsertSchema,
},
onSubmit: async ({ value }) => {
await createCustomer(value)
modal.handleClose()
},
})
const form = useAppForm({
defaultValues: {
// environmentId: activeEnvironment?.id ?? "",
name: "",
lastName: "",
email: "",
mobile: "",
country: "TH",
clientReferenceId: "",
} as CustomerCreateForm,
validators: {
onSubmit: CustomerInsertSchema,
},
onSubmit: async ({ value }) => {
await createCustomer(value)
modal.handleClose()
},
})