🚧 New editor nearly done

This commit is contained in:
Mawoka
2022-06-16 19:44:56 +02:00
parent a22cf647fd
commit d4bfe9138f
7 changed files with 238 additions and 13 deletions
+4 -4
View File
@@ -9,14 +9,14 @@ export const dataSchema = yup.object({
.max(300, 'The title has to be shorter than 300 characters'),
description: yup
.string()
.required()
.min(3, 'The title has to be longer than 3 characters')
.max(300, 'The title has to be shorter than 300 characters'),
.required('The description is required!')
.min(3, 'The description has to be longer than 3 characters')
.max(500, 'The description has to be shorter than 500 characters'),
questions: yup
.array()
.of(
yup.object({
question: yup.string().required('A question is required').max(299),
question: yup.string().required('A question-title is required').max(299),
time: yup.number().required().positive('The time has to be positive'),
image: yup
.string()