diff --git a/src/Pages/IO_Management/CreateIO/IOTransaction/ViewAmountInvested.jsx b/src/Pages/IO_Management/CreateIO/IOTransaction/ViewAmountInvested.jsx index d7a7607..3983f72 100644 --- a/src/Pages/IO_Management/CreateIO/IOTransaction/ViewAmountInvested.jsx +++ b/src/Pages/IO_Management/CreateIO/IOTransaction/ViewAmountInvested.jsx @@ -47,7 +47,7 @@ const formatCurrency = (value) => { return decimal ? `${formattedInteger}.${decimal}` : formattedInteger; }; -const ViewAmountInvested = ({ isOpen, onClose, id:investorId }) => { +const ViewAmountInvested = ({ isOpen, onClose, id: investorId }) => { const params = useParams(); const toast = useToast(); const id = params?.id; @@ -131,7 +131,11 @@ const ViewAmountInvested = ({ isOpen, onClose, id:investorId }) => { Total_Amount: IODetails?.totalAmtInvestmentInUSD, }); }; - + + console.log( + "=========hitttt", + IODetails?.ioTransactionRecords?.Approved?.[0]?.transactionAmount + ); return ( @@ -151,7 +155,9 @@ const ViewAmountInvested = ({ isOpen, onClose, id:investorId }) => { { - - Amount - - - + mb={"15px"} + isInvalid={!!errors.Total_Amount} + isReadOnly + > + + Amount + + + - - - Amount to invest - - - - - - - IO Cash - - - + + + Amount to invest + + + + + + IO Cash + + + diff --git a/src/Pages/IO_Management/CreateIO/IOTransaction/ViewCancel.jsx b/src/Pages/IO_Management/CreateIO/IOTransaction/ViewCancel.jsx index 1b89458..5dc7406 100644 --- a/src/Pages/IO_Management/CreateIO/IOTransaction/ViewCancel.jsx +++ b/src/Pages/IO_Management/CreateIO/IOTransaction/ViewCancel.jsx @@ -86,15 +86,15 @@ 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"); + // handleCalculate(id, { + // amount: IODetails?.ioMVNAV, + // }); + // reset({ + // amount: IODetails?.ioMVNAV, + // }); + // }, [IODetails, id]); const handleCalculate = async (id, data) => { try { diff --git a/src/Pages/IO_Management/CreateIO/IOTransaction/ViewDistributionInvestor.jsx b/src/Pages/IO_Management/CreateIO/IOTransaction/ViewDistributionInvestor.jsx index 87b9a25..3f3c059 100644 --- a/src/Pages/IO_Management/CreateIO/IOTransaction/ViewDistributionInvestor.jsx +++ b/src/Pages/IO_Management/CreateIO/IOTransaction/ViewDistributionInvestor.jsx @@ -70,15 +70,15 @@ const ViewDistributionInvestor = ({ isOpen, onClose,id:exitId }) => { resolver: yupResolver(investorExit), }); - useEffect(() => { - console.log("hiit useEffectc"); - handleCalculate(id, { - amount: IODetails?.ioMVNAV, - }); - reset({ - amount: IODetails?.ioMVNAV, - }); - }, [IODetails, id]); + // useEffect(() => { + // console.log("hiit useEffectc"); + // handleCalculate(id, { + // amount: IODetails?.ioMVNAV, + // }); + // reset({ + // amount: IODetails?.ioMVNAV, + // }); + // }, [IODetails, id]); const handleCalculate = async (id, data) => { try { diff --git a/src/Pages/IO_Management/CreateIO/IOTransaction/ViewExit.jsx b/src/Pages/IO_Management/CreateIO/IOTransaction/ViewExit.jsx index 262adcf..9a5ed80 100644 --- a/src/Pages/IO_Management/CreateIO/IOTransaction/ViewExit.jsx +++ b/src/Pages/IO_Management/CreateIO/IOTransaction/ViewExit.jsx @@ -76,15 +76,15 @@ 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"); + // handleCalculate(id, { + // amount: IODetails?.ioMVNAV, + // }); + // reset({ + // amount: IODetails?.ioMVNAV, + // }); + // }, [IODetails, id]); const handleCalculate = async (id, data) => { try { diff --git a/src/Pages/IO_Management/ViewIO/ViewIOdata.jsx b/src/Pages/IO_Management/ViewIO/ViewIOdata.jsx index c2f5e49..cb3a6d1 100644 --- a/src/Pages/IO_Management/ViewIO/ViewIOdata.jsx +++ b/src/Pages/IO_Management/ViewIO/ViewIOdata.jsx @@ -54,7 +54,7 @@ const ViewIOdata = () => { const tabs = [ { label: "IO Details", content: }, { - label: "Investment documents", + label: "Investment documents", content: , }, { label: "Key merits", content: }, @@ -103,10 +103,21 @@ const ViewIOdata = () => { index === 1 || index === 2 || index === 3 || - index === 4 + index === 4 || + index === 8 ? false : !IODetails?.isInvestedAmount } + + // isDisabled={ + // index === 0 || + // index === 1 || + // index === 2 || + // index === 3 || + // index === 4 + // ? false + // : !IODetails?.isInvestedAmount + // } key={index} fontSize={"xs"} _selected={{ diff --git a/src/Services/io.service.js b/src/Services/io.service.js index efb5a21..f937183 100644 --- a/src/Services/io.service.js +++ b/src/Services/io.service.js @@ -225,7 +225,7 @@ export const ioService = createApi({ invalidatesTags: ["getIOById"], }), - // ======== [ Distribution Transaction ] ======== + // ======== [ Distribution Transaction ] ======== getDistributionInvestor: builder.mutation({ query: ({ id, data }) => ({