From 5b2efcd29208d3e5b0d27d0438b617aea50dbfde Mon Sep 17 00:00:00 2001 From: YasinShaikh123 <123150391+YasinShaikh123@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:28:55 +0530 Subject: [PATCH] update color bugs --- src/Pages/IO_Management/CreateIO/IODetails.jsx | 2 +- .../Investor_Management/InvestorDetails/InvestorDetails.jsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Pages/IO_Management/CreateIO/IODetails.jsx b/src/Pages/IO_Management/CreateIO/IODetails.jsx index 18ff85c..de5ce86 100644 --- a/src/Pages/IO_Management/CreateIO/IODetails.jsx +++ b/src/Pages/IO_Management/CreateIO/IODetails.jsx @@ -70,7 +70,7 @@ const schema = yup.object().shape({ InvestmentDetails: yup.string().notRequired(), comment: yup.string().notRequired() - .min(10, "Comment must be at least 10 characters long") + // .min(10, "Comment must be at least 10 characters long") .max(100, "Comment must be at most 100 characters long"), expectedReturn: yup diff --git a/src/Pages/Investor_Management/InvestorDetails/InvestorDetails.jsx b/src/Pages/Investor_Management/InvestorDetails/InvestorDetails.jsx index 1f7f5a9..538ee23 100644 --- a/src/Pages/Investor_Management/InvestorDetails/InvestorDetails.jsx +++ b/src/Pages/Investor_Management/InvestorDetails/InvestorDetails.jsx @@ -216,13 +216,14 @@ const InvestorDetails = () => { as={'span'} fontWeight={"700"} textTransform={"none"} - color={item.ioStatus ? "gray.500":item.kycStatus ? "blue.500" : "red.500"} + color={item?.KYCStatus === true ? "green" : "yellow.500"} px={2} py={0.5} variant={'solid'} > - {item.KYCStatus ? "Completed" : "Not complete"} + {/* {item.KYCStatus ? "Completed" : "Not complete"} */} + {item?.KYCStatus === true ? "Completed" : "NotCompleted"} ),