mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
12 lines
332 B
TypeScript
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>;
|