Risky Commit ☠️

This commit is contained in:
2024-09-03 13:45:57 +05:30
parent fdbdc61cac
commit 753f3d40c3
2 changed files with 32 additions and 25 deletions

View File

@@ -110,8 +110,9 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
"First name",
"Last Name",
"Amount",
"Holding %",
"Holding (%)",
"Distriution Amt($)",
"Yeild (%)",
];
const extractedArray = calcualtedData?.data?.map((item, index) => ({
@@ -160,17 +161,15 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
</Text>
</Box>
),
"Holding %": (
<Box minW={19} isTruncated={true}>
<Text
textAlign={"right"}
as={"span"}
color={"teal.900"}
fontWeight={"500"}
>
{parseFloat(item?.distribution_per).toFixed(2)}%
</Text>
</Box>
"Holding (%)": (
<Box minW={24} isTruncated={true}>
<Text as={"span"} color={"teal.900"} fontWeight={"500"}>
{item?.investor_holidings?.toLocaleString(undefined, {
minimumFractionDigits: 2,
maximumFractionDigits: 2,
})}%
</Text>
</Box>
),
"Distriution Amt($)": (
<Box minW={24} isTruncated={true}>
@@ -182,6 +181,16 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
</Text>
</Box>
),
"Yeild (%)": (
<Box minW={24} isTruncated={true}>
<Text as={"span"} color={"teal.900"} fontWeight={"500"}>
{item?.distribution_per?.toLocaleString(undefined, {
minimumFractionDigits: 2,
maximumFractionDigits: 2,
})}%
</Text>
</Box>
),
}));
const Total = () => {
@@ -359,7 +368,7 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
return (
<Modal size={"xl"} isOpen={isOpen} onClose={handleClose}>
<ModalOverlay />
<ModalContent maxW={1000}>
<ModalContent maxW={1200}>
<ModalHeader fontSize={"md"}>
Distribution To Investor Transaction
</ModalHeader>

View File

@@ -147,7 +147,7 @@ const Exit = ({ isOpen, onClose }) => {
"First name",
"Last Name",
"Amount",
"Holding %",
"Holding (%)",
"Exit Amt($)",
];
@@ -197,17 +197,15 @@ const Exit = ({ isOpen, onClose }) => {
</Text>
</Box>
),
"Holding %": (
<Box minW={19} isTruncated={true}>
<Text
textAlign={"right"}
as={"span"}
color={"teal.900"}
fontWeight={"500"}
>
{parseFloat(item?.distribution_per).toFixed(2)}%
</Text>
</Box>
"Holding (%)": (
<Box minW={24} isTruncated={true}>
<Text as={"span"} color={"teal.900"} fontWeight={"500"}>
{item?.investor_holidings?.toLocaleString(undefined, {
minimumFractionDigits: 2,
maximumFractionDigits: 2,
})}%
</Text>
</Box>
),
"Exit Amt($)": (
<Box minW={24} isTruncated={true}>