From 428bba68371ebe7d88e50f5d9aeb1c30ce82ec97 Mon Sep 17 00:00:00 2001 From: Nishit Suwal <81785002+NSUWAL123@users.noreply.github.com> Date: Fri, 29 Mar 2024 19:11:16 +0545 Subject: [PATCH] fix (frontend): required fields, description word limit, odk cred input (#1404) * feat select: required mark add * feat projectDetailsForm: organization name select field required * fix projectDetailsForm: display odk fields if no odk-credentials * feat textArea: character length limit & current character length display in textArea * feat projectDescription: short description character length limit set to 200 characters --- .../ManageProject/EditTab/ProjectDescriptionTab.tsx | 3 ++- src/frontend/src/components/common/Select.tsx | 7 ++++++- src/frontend/src/components/common/TextArea.tsx | 7 ++++++- .../src/components/createnewproject/ProjectDetailsForm.tsx | 7 ++++--- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/components/ManageProject/EditTab/ProjectDescriptionTab.tsx b/src/frontend/src/components/ManageProject/EditTab/ProjectDescriptionTab.tsx index b1bc15e82b..43aff0e73a 100644 --- a/src/frontend/src/components/ManageProject/EditTab/ProjectDescriptionTab.tsx +++ b/src/frontend/src/components/ManageProject/EditTab/ProjectDescriptionTab.tsx @@ -61,12 +61,13 @@ const ProjectDescriptionTab = ({ projectId }) => { onChange={handleChange} errorMsg={errors.short_description} required + maxLength={200} />