This commit is contained in:
YasinShaikh123
2024-12-31 13:42:28 +05:30
parent b620cd410d
commit d63ac2eb2b
6 changed files with 19 additions and 7 deletions

View File

@@ -217,7 +217,7 @@ const IOArtifactsAdd = ({ isOpen, onClose, firstField, actionId, setActionId, da
isOpen={alert}
onClose={() => setAlert(false)}
alertHandler={handleSave}
message={"Are you sure you want to update this artifact?"}
message={"Are you sure you want to add this artifact?"}
isLoading={isLoading}
/>
</>

View File

@@ -107,7 +107,8 @@ const IOCashDetails = () => {
</Tab>
</TabList>
{IODetails?.isInvestedAmount
? isMaker() && (
? isMaker() &&
IODetails?.ioSatatus !== "Exited" && (
<Button
onClick={handleAdd}
leftIcon={<AddIcon />}

View File

@@ -153,7 +153,8 @@ const IONAVDetails = () => {
</Tab>
</TabList>
{IODetails?.isInvestedAmount
? isMaker() && (
? isMaker() &&
IODetails?.ioSatatus !== "Exited" && (
<Button
onClick={handleAdd}
leftIcon={<AddIcon />}

View File

@@ -360,7 +360,7 @@ const IOArtifactsAdd = ({
isOpen={alert}
onClose={handleAlertClose}
alertHandler={handleSave}
message={"Are you sure you want to update this artifact?"}
message={"Are you sure you want to add this artifact?"}
isLoading={loading}
/>
</>

View File

@@ -112,8 +112,18 @@ const AmountInvested = ({ isOpen, onClose }) => {
});
};
const handleModalClose = () => {
reset({
transactionDate: "",
Total_Amount: IODetails?.totalAmtInvestmentInUSD || 0,
amountInvested: 0,
IoCash: IODetails?.totalAmtInvestmentInUSD || 0,
});
onClose();
};
return (
<Modal isOpen={isOpen} onClose={onClose}>
<Modal isOpen={isOpen} onClose={handleModalClose}>
<ModalOverlay />
<ModalContent>
<ModalHeader fontSize={"md"}>Amount Invested</ModalHeader>
@@ -246,7 +256,7 @@ const AmountInvested = ({ isOpen, onClose }) => {
>
Save
</Button>
<Button size={"sm"} rounded={"sm"} mr={3} onClick={onClose}>
<Button size={"sm"} rounded={"sm"} mr={3} onClick={handleModalClose}>
Close
</Button>
</ModalFooter>

View File

@@ -495,7 +495,7 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
>
Save
</Button>
<Button size={"sm"} rounded={"sm"} mr={3} onClick={onClose}>
<Button size={"sm"} rounded={"sm"} mr={3} onClick={handleClose}>
Close
</Button>
</>