diff --git a/src/Components/InvestmentCard/InvestmentCard.jsx b/src/Components/InvestmentCard/InvestmentCard.jsx
index 775dd5a..072203e 100644
--- a/src/Components/InvestmentCard/InvestmentCard.jsx
+++ b/src/Components/InvestmentCard/InvestmentCard.jsx
@@ -11,51 +11,10 @@ import {
Tooltip,
} from "@chakra-ui/react";
-const investments = [
- {
- imgSrc:
- "https://images.unsplash.com/photo-1667489022797-ab608913feeb?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw5fHx8ZW58MHx8fHw%3D&auto=format&fit=crop&w=800&q=60",
- title: "Multi Family Residence Portfolio",
- sponsor: "KKR",
- annReturn: "12.5%",
- annYield: "12.5%",
- minInvests: "$1,000",
- targClose: "24 December",
- holdingPer: "5-7 years",
- progressValue: 80,
- },
- {
- imgSrc:
- "https://images.unsplash.com/photo-1667489022797-ab608913feeb?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw5fHx8ZW58MHx8fHw%3D&auto=format&fit=crop&w=800&q=60",
- title: "Multi Family Residence Portfolio",
- sponsor: "KKR",
- annReturn: "12.5%",
- annYield: "12.5%",
- minInvests: "$1,000",
- targClose: "24 December",
- holdingPer: "5-7 years",
- progressValue: 80,
- },
- {
- imgSrc:
- "https://images.unsplash.com/photo-1667489022797-ab608913feeb?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw5fHx8ZW58MHx8fHw%3D&auto=format&fit=crop&w=800&q=60",
- title: "Multi Family Residence Portfolio",
- sponsor: "KKR",
- annReturn: "12.5%",
- annYield: "12.5%",
- minInvests: "$1,000",
- targClose: "24 December",
- holdingPer: "5-7 years",
- progressValue: 80,
- },
-];
-const InvestmentCard = () => {
+const InvestmentCard = ({investment}) => {
return (
-
-
- {investments.map((investment, index) => (
- {
objectFit="cover"
w={"200px"}
h={"160px"}
- src={investment.imgSrc}
- alt={investment.title}
+ src={investment?.imgSrc}
+ alt={investment?.title}
/>
- {investment.title}
+ {investment?.title}
Sponsor:{" "}
- {investment.sponsor}
+ {investment?.sponsor}
{" "}
Ann return:{" "}
- {investment.annReturn}
+ {investment?.annReturn}
{" "}
Ann Yield:{" "}
- {investment.annYield}
+ {investment?.annYield}
{" "}
@@ -105,29 +64,29 @@ const InvestmentCard = () => {
Min.Invests:{" "}
- {investment.minInvests}
+ {investment?.minInvests}
{" "}
Targ Close:{" "}
- {investment.targClose}
+ {investment?.targClose}
{" "}
Holding per:{" "}
- {investment.holdingPer}
+ {investment?.holdingPer}
{" "}
-
+
- ))}
-
-
);
};
diff --git a/src/Contexts/GlobalStateProvider.jsx b/src/Contexts/GlobalStateProvider.jsx
index 06fb0a4..3718cd9 100644
--- a/src/Contexts/GlobalStateProvider.jsx
+++ b/src/Contexts/GlobalStateProvider.jsx
@@ -301,18 +301,6 @@ const GlobalStateProvider = ({ children }) => {
holdingPer: "5-7 years",
progressValue: 80,
},
- {
- imgSrc:
- "https://images.unsplash.com/photo-1667489022797-ab608913feeb?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxlZGl0b3JpYWwtZmVlZHw5fHx8ZW58MHx8fHw%3D&auto=format&fit=crop&w=800&q=60",
- title: "Multi Family Residence Portfolio",
- sponsor: "KKR",
- annReturn: "12.5%",
- annYield: "12.5%",
- minInvests: ",00 $0",
- targClose: "24 December",
- holdingPer: "5-7 years",
- progressValue: 80,
- },
]);
const [rateExchange, setRateExchange] = useState([
diff --git a/src/Pages/IO_Management/ViewIO.jsx b/src/Pages/IO_Management/ViewIO.jsx
index d72ab4f..c35d5f2 100644
--- a/src/Pages/IO_Management/ViewIO.jsx
+++ b/src/Pages/IO_Management/ViewIO.jsx
@@ -55,7 +55,7 @@ const ExchangeRate = () => {
{investment?.map((investmentDetails, index) => (
-
+
))}