From 30c51a5b348945ef94e8e45c6315256077744836 Mon Sep 17 00:00:00 2001 From: YasinShaikh123 <123150391+YasinShaikh123@users.noreply.github.com> Date: Thu, 24 Oct 2024 19:05:52 +0530 Subject: [PATCH] Update --- src/Pages/IO_Management/InvestmentDocuments.jsx | 8 ++++++-- src/Pages/Investor_Management/InvestorDetails/Kyc.jsx | 6 +----- src/Pages/Master/Sponser/AddSponser.jsx | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Pages/IO_Management/InvestmentDocuments.jsx b/src/Pages/IO_Management/InvestmentDocuments.jsx index abd0281..4872a1f 100644 --- a/src/Pages/IO_Management/InvestmentDocuments.jsx +++ b/src/Pages/IO_Management/InvestmentDocuments.jsx @@ -59,8 +59,10 @@ export const investmentDocSchema = yup.object().shape({ // console.log("File size:", value ? value.size : "No file"); // return value && value.size <= 2 * 1024 * 1024; // 2MB in bytes // }) - fileName: yup.string().required("File name is required"), + fileName: yup.string().required("File name is required") + .max(25, "File name must be at most 25 characters"), // Maximum length validation, documentNameArabic: yup.string().required("File name Arabic is required") + .max(25, "File name must be at most 30 characters"), }); const InvestmentDocuments = ({ @@ -204,10 +206,11 @@ const InvestmentDocuments = ({ File Name {errors.fileName && ( @@ -226,6 +229,7 @@ const InvestmentDocuments = ({ type="text" size="sm" textAlign={'right'} + maxLength={30} // Maximum length constraint in the input field /> {errors.documentNameArabic && ( diff --git a/src/Pages/Investor_Management/InvestorDetails/Kyc.jsx b/src/Pages/Investor_Management/InvestorDetails/Kyc.jsx index 4fefc63..481aaca 100644 --- a/src/Pages/Investor_Management/InvestorDetails/Kyc.jsx +++ b/src/Pages/Investor_Management/InvestorDetails/Kyc.jsx @@ -119,7 +119,7 @@ const Kyc = () => { - Occupation + Additional Questions @@ -158,10 +158,6 @@ const Kyc = () => { */} - - Additional Questions - - Investor Eligibilty Notice diff --git a/src/Pages/Master/Sponser/AddSponser.jsx b/src/Pages/Master/Sponser/AddSponser.jsx index c7de954..33188ef 100644 --- a/src/Pages/Master/Sponser/AddSponser.jsx +++ b/src/Pages/Master/Sponser/AddSponser.jsx @@ -322,7 +322,7 @@ const AddSponser = () => { isOpen={alert} onClose={() => setAlert(false)} alertHandler={handleConfirm} - message={"Are you sure you want to add this?"} + message={id ? "Are you sure you want to update this?" : "Are you sure you want to add this?"} isLoading={isLoadingBtn} />