Merge pull request 'update modal view' (#18) from Yasin into release/sprint-8

Reviewed-on: #18
This commit is contained in:
2024-11-22 14:24:42 +00:00
13 changed files with 49 additions and 30 deletions

View File

@@ -129,7 +129,7 @@ const RequestApproveModal = ({ isOpen, onClose, firstField ,id}) => {
fontSize="sm"
type="textarea"
size="md"
placeholder={"Enter your checkerComment...."}
placeholder={"Enter your checker comment...."}
rounded={"md"}
resize={"none"}
maxLength={200}

View File

@@ -129,7 +129,7 @@ const RequestApproveModal = ({ isOpen, onClose, firstField ,id}) => {
fontSize="sm"
type="textarea"
size="md"
placeholder={"Enter your checkerComment...."}
placeholder={"Enter your checker comment...."}
rounded={"md"}
resize={"none"}
maxLength={200}

View File

@@ -131,7 +131,7 @@ import {
fontSize="sm"
type="textarea"
size="md"
placeholder={"Enter your checkerComment...."}
placeholder={"Enter your checker comment...."}
rounded={"md"}
resize={"none"}
maxLength={200}

View File

@@ -129,7 +129,7 @@ import {
fontSize="sm"
type="textarea"
size="md"
placeholder={"Enter your checkerComment...."}
placeholder={"Enter your checker comment...."}
rounded={"md"}
resize={"none"}
maxLength={200}

View File

@@ -113,7 +113,7 @@ import {
fontSize="sm"
type="textarea"
size="md"
placeholder={"Enter your checkerComment...."}
placeholder={"Enter your checker comment...."}
rounded={"md"}
resize={"none"}
maxLength={200}

View File

@@ -127,7 +127,7 @@ import {
fontSize="sm"
type="textarea"
size="md"
placeholder={"Enter your checkerComment...."}
placeholder={"Enter your checker comment...."}
rounded={"md"}
resize={"none"}
maxLength={200}

View File

@@ -128,7 +128,7 @@ const RequestApproveModal = ({ isOpen, onClose, firstField ,id}) => {
fontSize="sm"
type="textarea"
size="md"
placeholder={"Enter your checkerComment...."}
placeholder={"Enter your checker comment...."}
rounded={"md"}
resize={"none"}
maxLength={200}

View File

@@ -128,7 +128,7 @@ import {
fontSize="sm"
type="textarea"
size="md"
placeholder={"Enter your checkerComment...."}
placeholder={"Enter your checker comment...."}
rounded={"md"}
resize={"none"}
maxLength={200}

View File

@@ -116,6 +116,7 @@ const ViewAmountInvested = ({ isOpen, onClose, id: investorId }) => {
};
// const formatDate = (date) => new Date(date).toLocaleDateString();
const handleAmountChange = (e) => {
// e might be an object or just a value, handle both cases

View File

@@ -86,15 +86,17 @@ import RequestRejectModal from "./RequestRejectModal";
resolver: yupResolver(investorExit),
});
// useEffect(() => {
// console.log("hiit useEffectc");
// handleCalculate(id, {
// amount: IODetails?.ioMVNAV,
// });
// reset({
// amount: IODetails?.ioMVNAV,
// });
// }, [IODetails, id]);
useEffect(() => {
console.log("hiit useEffectc");
if (id) {
handleCalculate(id, {
amount: IODetails?.ioMVNAV,
});
}
reset({
amount: IODetails?.ioMVNAV,
});
}, [IODetails, id]);
const handleCalculate = async (id, data) => {
try {

View File

@@ -72,9 +72,14 @@ const ViewDistributionInvestor = ({ isOpen, onClose,id:exitId }) => {
useEffect(() => {
console.log("hiit useEffectc");
handleCalculate(id, {
amount: IODetails?.ioMVNAV,
});
// handleCalculate(id, {
// amount: IODetails?.ioMVNAV,
// });
if (id) {
handleCalculate(id, {
amount: IODetails?.ioMVNAV,
});
}
reset({
amount: IODetails?.ioMVNAV,
});

View File

@@ -76,18 +76,21 @@ import RequestRejectModal from "./RequestRejectModal";
resolver: yupResolver(),
});
// useEffect(() => {
// console.log("hiit useEffectc");
// handleCalculate(id, {
// amount: IODetails?.ioMVNAV,
// });
// reset({
// amount: IODetails?.ioMVNAV,
// });
// }, [IODetails, id]);
useEffect(() => {
console.log("hiit useEffectc");
if (id) {
handleCalculate(id, {
amount: IODetails?.ioMVNAV,
});
}
reset({
amount: IODetails?.ioMVNAV,
});
}, [IODetails, id]);
const handleCalculate = async (id, data) => {
try {
const res = await getDistributionInvestment({ id, data });
console.log(res?.data?.data);

View File

@@ -40,6 +40,7 @@ import Destribution from "../CreateIO/Destribution";
import IOCashDetails from "../CreateIO/IOCashDetails/IOCashDetails";
import IONAVDetails from "../CreateIO/IONAVDetails/IONAVDetails";
import IOTransaction from "../CreateIO/IOTransaction/IOTransaction";
import { GoDotFill } from "react-icons/go";
const ViewIOdata = () => {
const params = useParams();
@@ -74,6 +75,10 @@ const ViewIOdata = () => {
// { label: "Distribution to Investors", content: <UnderConstruction h={'75vh'} /> },
];
console.log(IODetails?.ioNAVHistory);
return (
<Box
{...OPACITY_ON_LOAD}
@@ -125,8 +130,11 @@ const ViewIOdata = () => {
borderBottom: "2px solid #38a169",
}}
fontWeight={500}
position={"relative"}
>
{label}
{label} {index === 5 &&IODetails?.ioCashStatusHistory?.Pending?.length !== 0||
index === 6 && IODetails?.ioNAVStatusHistory?.Pending?.length !== 0 ||
index === 8 && IODetails?.ioTransactionRecords?.Pending?.length !== 0 ? <Box as="span" right={0} color={"forestGreen"} top={1} position={"absolute"}><GoDotFill /></Box>:""}
</Tab>
))}
</Box>