update tabs
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -98,15 +98,16 @@ const ViewIOdata = () => {
|
||||
{tabs.map(({ label }, index) => (
|
||||
<Tab
|
||||
px={3}
|
||||
// isDisabled={
|
||||
// index === 0 ||
|
||||
// index === 1 ||
|
||||
// index === 2 ||
|
||||
// index === 3 ||
|
||||
// index === 4
|
||||
// ? false
|
||||
// : !IODetails?.isInvestedAmount
|
||||
// }
|
||||
isDisabled={
|
||||
index === 0 ||
|
||||
index === 1 ||
|
||||
index === 2 ||
|
||||
index === 3 ||
|
||||
index === 4 ||
|
||||
index === 8
|
||||
? false
|
||||
: !IODetails?.isInvestedAmount
|
||||
}
|
||||
|
||||
// isDisabled={
|
||||
// index === 0 ||
|
||||
|
||||
@@ -225,7 +225,7 @@ export const ioService = createApi({
|
||||
invalidatesTags: ["getIOById"],
|
||||
}),
|
||||
|
||||
// ======== [ Distribution Transaction ] ========
|
||||
// ======== [ Distribution Transaction ] ========
|
||||
|
||||
getDistributionInvestor: builder.mutation({
|
||||
query: ({ id, data }) => ({
|
||||
|
||||
Reference in New Issue
Block a user