From 29b04bb3ef2b7c5ee372f92d43010d58d602e2cf Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 24 Jul 2023 12:57:05 +0530 Subject: [PATCH] chore: increase project identifier max length (#1638) --- apps/app/components/project/create-project-modal.tsx | 5 ++--- apps/app/components/ui/dropdowns/custom-menu.tsx | 2 +- apps/app/components/ui/dropdowns/custom-search-select.tsx | 1 + apps/app/components/ui/dropdowns/custom-select.tsx | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/app/components/project/create-project-modal.tsx b/apps/app/components/project/create-project-modal.tsx index d9c6c24d3..ef34320fa 100644 --- a/apps/app/components/project/create-project-modal.tsx +++ b/apps/app/components/project/create-project-modal.tsx @@ -95,7 +95,6 @@ export const CreateProjectModal: React.FC = ({ isOpen, setIsOpen, user }) setValue, } = useForm({ defaultValues, - mode: "all", reValidateMode: "onChange", }); @@ -298,8 +297,8 @@ export const CreateProjectModal: React.FC = ({ isOpen, setIsOpen, user }) message: "Identifier must at least be of 1 character", }, maxLength: { - value: 5, - message: "Identifier must at most be of 5 characters", + value: 12, + message: "Identifier must at most be of 12 characters", }, }} /> diff --git a/apps/app/components/ui/dropdowns/custom-menu.tsx b/apps/app/components/ui/dropdowns/custom-menu.tsx index 280bd6794..c451d4432 100644 --- a/apps/app/components/ui/dropdowns/custom-menu.tsx +++ b/apps/app/components/ui/dropdowns/custom-menu.tsx @@ -40,7 +40,7 @@ const CustomMenu = ({ {({ open }) => ( <> {customButton ? ( - + {customButton} ) : ( diff --git a/apps/app/components/ui/dropdowns/custom-search-select.tsx b/apps/app/components/ui/dropdowns/custom-search-select.tsx index 518bc5ab8..22f66626e 100644 --- a/apps/app/components/ui/dropdowns/custom-search-select.tsx +++ b/apps/app/components/ui/dropdowns/custom-search-select.tsx @@ -73,6 +73,7 @@ export const CustomSearchSelect = ({ {customButton} ) : ( {customButton} ) : (