Compare commits
2 Commits
Testing
...
Sprint7.1.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b2efcd292 | ||
|
|
f2023cf7b3 |
@@ -75,7 +75,7 @@ const IOCashDetails = () => {
|
||||
"Update by ",
|
||||
"Update On",
|
||||
];
|
||||
|
||||
|
||||
const handleUpdateStatus = debounce((id) => {
|
||||
setCaseDetails((prevSponser) =>
|
||||
prevSponser.map((sponsor) =>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -82,12 +82,16 @@ const KeyMeritsEdit = ({
|
||||
meritsDescription: found?.meritsDescription,
|
||||
meritsHeaderArabic: found?.meritsHeaderArabic,
|
||||
meritsDescriptionArabic: found?.meritsDescriptionArabic,
|
||||
iconImage: null,
|
||||
icon_xid: found?.icon_xid,
|
||||
});
|
||||
console.log("==============",found);
|
||||
|
||||
}
|
||||
}, [found, reset]);
|
||||
|
||||
const onSubmit = async (data) => {
|
||||
console.log(data);
|
||||
|
||||
setIsLoading(true);
|
||||
try {
|
||||
const id = actionId;
|
||||
@@ -97,6 +101,9 @@ const KeyMeritsEdit = ({
|
||||
render: () => <ToastBox message={res?.data?.message} />,
|
||||
});
|
||||
handleClose()
|
||||
reset({
|
||||
meritsHeader: "",
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (res?.error?.data?.code === 400) {
|
||||
@@ -106,6 +113,7 @@ const KeyMeritsEdit = ({
|
||||
),
|
||||
});
|
||||
handleClose()
|
||||
reset();
|
||||
return;
|
||||
}
|
||||
} catch (error) {
|
||||
@@ -288,7 +296,7 @@ const KeyMeritsEdit = ({
|
||||
alt={selectedImageIcon}
|
||||
boxSize="1rem"
|
||||
mr="12px"
|
||||
/>}{" "}
|
||||
/>}
|
||||
<Text as={"span"} fontSize={"sm"} fontWeight={500}>
|
||||
{selectedIcon}
|
||||
</Text>
|
||||
|
||||
@@ -361,7 +361,7 @@ const ViewIOdetails = () => {
|
||||
colorScheme="forestGreen"
|
||||
rounded={"sm"}
|
||||
size={"xs"}
|
||||
>
|
||||
>
|
||||
Edit IO
|
||||
</Button>
|
||||
<FormInputView groupedFields={groupedFields} />
|
||||
|
||||
@@ -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"}
|
||||
</Text>
|
||||
</Box>
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user