From a89c06aba09d116cfca6e60eea1a2a155db2007e Mon Sep 17 00:00:00 2001 From: ani-kalpachka Date: Sun, 21 Jul 2024 21:33:06 +0300 Subject: [PATCH] Update indentation to fix the build --- src/components/admin/documents/Form.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/admin/documents/Form.tsx b/src/components/admin/documents/Form.tsx index edd823fdf..11bdf8596 100644 --- a/src/components/admin/documents/Form.tsx +++ b/src/components/admin/documents/Form.tsx @@ -23,7 +23,13 @@ const validationSchema = yup .object() .defined() .shape({ - type: yup.string().oneOf(validDocumentTypes, `Видът трябва да бъде една от следните стойности: ${validDocumentTypes.join(', ')}.`).required(), + type: yup + .string() + .oneOf( + validDocumentTypes, + `Видът трябва да бъде една от следните стойности: ${validDocumentTypes.join(', ')}.`, + ) + .required(), name: yup.string().trim().min(2).max(20).required(), filename: yup.string().trim().min(2).max(20).required(), filetype: yup.string().trim().max(3),