Files
lti-web-client/src/components/pages/master-data/flock/form/FlockForm.schema.ts
T
2025-11-01 15:58:47 +07:00

12 lines
332 B
TypeScript

import * as Yup from 'yup';
export const FlockFormSchema = Yup.object({
name: Yup.string()
.required('Nama wajib diisi!')
.matches(/^[\p{L}\p{N}\s]+$/u, 'Nama tidak boleh mengandung simbol'),
});
export const UpdateFlockFormSchema = FlockFormSchema;
export type FlockFormValues = Yup.InferType<typeof FlockFormSchema>;