From a37dec45d94569a0c52696c6dcfbfc5b39148f2f Mon Sep 17 00:00:00 2001 From: Lakhan Baheti <94619783+1akhanBaheti@users.noreply.github.com> Date: Sun, 17 Dec 2023 00:39:23 +0530 Subject: [PATCH] chore: made project-identifier rule consistent (#3148) --- web/components/project/create-project-modal.tsx | 4 ++-- web/components/project/form.tsx | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/web/components/project/create-project-modal.tsx b/web/components/project/create-project-modal.tsx index e8a85600f..83c7851b9 100644 --- a/web/components/project/create-project-modal.tsx +++ b/web/components/project/create-project-modal.tsx @@ -308,8 +308,8 @@ export const CreateProjectModal: FC = observer((props) => { message: "Identifier must at least be of 1 character", }, maxLength: { - value: 12, - message: "Identifier must at most be of 12 characters", + value: 6, + message: "Identifier must at most be of 6 characters", }, }} render={({ field: { value, onChange } }) => ( diff --git a/web/components/project/form.tsx b/web/components/project/form.tsx index f4d753885..9af8c7831 100644 --- a/web/components/project/form.tsx +++ b/web/components/project/form.tsx @@ -232,7 +232,7 @@ export const ProjectDetailsForm: FC = (props) => { /> -
+

Identifier

= (props) => { message: "Identifier must at least be of 1 character", }, maxLength: { - value: 12, - message: "Identifier must at most be of 5 characters", + value: 6, + message: "Identifier must at most be of 6 characters", }, }} render={({ field: { value, ref } }) => ( @@ -265,6 +265,7 @@ export const ProjectDetailsForm: FC = (props) => { /> )} /> + {errors?.identifier?.message}