From 0cfe9cb9177dc3fc3dafd4dd0aac4c6913cbf0d5 Mon Sep 17 00:00:00 2001 From: Vaibhav Surve Date: Fri, 18 Apr 2025 17:44:59 +0530 Subject: [PATCH] Update character count messages to use "characters left" for clarity --- src/components/Employee/ManageEmployee.jsx | 4 ++-- src/components/Project/ManageProjectInfo.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Employee/ManageEmployee.jsx b/src/components/Employee/ManageEmployee.jsx index aab94535..224153c8 100644 --- a/src/components/Employee/ManageEmployee.jsx +++ b/src/components/Employee/ManageEmployee.jsx @@ -441,7 +441,7 @@ const ManageEmployee = () => { }} >
- {500 - currentAddressLength} characters remaining + {500 - currentAddressLength} characters left
{errors.CurrentAddress && (
@@ -467,7 +467,7 @@ const ManageEmployee = () => { }} >
- {500 - permanentAddressLength} characters remaining + {500 - permanentAddressLength} characters left
{errors.PermanentAddress && (
diff --git a/src/components/Project/ManageProjectInfo.jsx b/src/components/Project/ManageProjectInfo.jsx index 0bb57441..88cbb5d7 100644 --- a/src/components/Project/ManageProjectInfo.jsx +++ b/src/components/Project/ManageProjectInfo.jsx @@ -219,7 +219,7 @@ const ManageProjectInfo = ( {project,handleSubmitForm, onClose} ) => />
- {maxAddressLength - addressLength} characters remaining + {maxAddressLength - addressLength} characters left
{errors.projectAddress &&
{errors.projectAddress.message}
}