diff --git a/src/Pages/Deposit/DepositViewHistory/DepositHistory.jsx b/src/Pages/Deposit/DepositViewHistory/DepositHistory.jsx
index 6bd41fb..6b962eb 100644
--- a/src/Pages/Deposit/DepositViewHistory/DepositHistory.jsx
+++ b/src/Pages/Deposit/DepositViewHistory/DepositHistory.jsx
@@ -186,7 +186,6 @@ const DepositHistory = () => {
),
"Amount in Investor currency": (
new Date(date).toLocaleDateString(); // Simple date formatter
@@ -48,6 +49,17 @@ const ViewInvestorDetails = () => {
const [mouseEntered, setMouseEntered] = useState(false);
const [mouseEnteredId, setMouseEnteredId] = useState("");
const [isSwitchOn, setIsSwitchOn] = useState(false);
+ // const params = useParams();
+ // const id = params?.id;
+
+
+ // const { data, errors, refetch} = useGetInvestorsDetailsById_InInvCurQuery(id, {
+ // skip: !id,
+ // });
+
+ // console.log(data);
+
+
useEffect(() => {
// Simulate loading
@@ -62,9 +74,10 @@ const ViewInvestorDetails = () => {
// ====================================================[Table Setup]================================================================
const tableHeadRow = [
// "Sr N/O",
- "Deal Name",
+ // "Deal Name",
"IO Name",
"Sponsor Name",
+ "Investment Type",
"Investment Amount",
"Percentage",
"Market Value",
@@ -118,13 +131,6 @@ const ViewInvestorDetails = () => {
),
- "Deal Name": (
-
-
- {item.investmentTypeName}
-
-
- ),
"Sponsor Name": (
@@ -132,6 +138,13 @@ const ViewInvestorDetails = () => {
),
+ "Investment Type": (
+
+
+ {item.investmentTypeName}
+
+
+ ),
"Investment Amount": (
@@ -309,7 +322,7 @@ const ViewInvestorDetails = () => {
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
/>
- {
>
{isSwitchOn ? "Investor Currency" : "Investor Currency"}
-
+ */}
{/*
*/}
diff --git a/src/Pages/Investor_Management/InvestorTransactions.jsx b/src/Pages/Investor_Management/InvestorTransactions.jsx
index 1f2afeb..e07f6db 100644
--- a/src/Pages/Investor_Management/InvestorTransactions.jsx
+++ b/src/Pages/Investor_Management/InvestorTransactions.jsx
@@ -10,7 +10,7 @@ import {
MenuItem,
MenuList,
Portal,
- Select,
+ Select,
Switch,
Tag,
Text,
diff --git a/src/Pages/WithDrawal/DrawalView/ViewHistory.jsx b/src/Pages/WithDrawal/DrawalView/ViewHistory.jsx
index bb6dbf4..eeb6ede 100644
--- a/src/Pages/WithDrawal/DrawalView/ViewHistory.jsx
+++ b/src/Pages/WithDrawal/DrawalView/ViewHistory.jsx
@@ -193,7 +193,7 @@ const ViewHistory = () => {
),
"Amount in Investor currency": (
-
+
{parseFloat(item?.investorAmount||0).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}{item?.currencyCode}
diff --git a/src/Routes/Nav.js b/src/Routes/Nav.js
index b919474..6bf4945 100644
--- a/src/Routes/Nav.js
+++ b/src/Routes/Nav.js
@@ -83,11 +83,11 @@ export const nav = [
path: "/investor-details",
icon: TbListDetails,
},
- {
- title: "Investor Transactions",
- path: "/investor-transactions",
- icon: TbTransactionDollar,
- },
+ // {
+ // title: "Investor Transactions",
+ // path: "/investor-transactions",
+ // icon: TbTransactionDollar,
+ // },
],
type: "accordion",
Icon: TbCalendarDollar,
diff --git a/src/Routes/Routes.js b/src/Routes/Routes.js
index 9d3928f..4a33e67 100644
--- a/src/Routes/Routes.js
+++ b/src/Routes/Routes.js
@@ -12,7 +12,7 @@ import ViewIOdata from "../Pages/IO_Management/ViewIO/ViewIOdata";
import InvestorPendingRequest from "../Pages/InvestorUpgrade/InvestorRequest";
import UpgradeHistory from "../Pages/InvestorUpgrade/UpgradeHistory";
import InvestorDetails from "../Pages/Investor_Management/InvestorDetails/InvestorDetails";
-import InvestorTransactions from "../Pages/Investor_Management/InvestorTransactions";
+// import InvestorTransactions from "../Pages/Investor_Management/InvestorTransactions";
import ProfileView from "../Pages/Investor_Management/InvestorDetails/ProfileView";
import ViewInvestorDetails from "../Pages/Investor_Management/InvestorDetails/ViewInvestorDetails";
import ExchangeRate from "../Pages/Master/ExchangeRate/ExchangeRate";
@@ -67,7 +67,7 @@ export const RouteLink = [
{ path: "/investor-details/profile-view/:id", Component: ProfileView },
{ path: "/investor-details/view-investor-details", Component: ViewInvestorDetails },
// { path: "/investor-transactions", Component: InvestorTransactions },
- { path: "/investor-transactions", Component: UnderConstruction },
+ // { path: "/investor-transactions", Component: UnderConstruction },
// ===============[ Deposit ]===============
{ path: "/deposit-request", Component: DepositRequest },
diff --git a/src/Services/investor.details.service.js b/src/Services/investor.details.service.js
index 35d0500..449815d 100644
--- a/src/Services/investor.details.service.js
+++ b/src/Services/investor.details.service.js
@@ -22,9 +22,16 @@ export const investorDetails = createApi({
query: (id) => `/investorDetails/admin/byId/${id}`,
providesTags: ["getInvestors"],
}),
+
+ // =====[get investment details ]
+ getInvestorsDetailsById_InInvCur: builder.query({
+ query: (id) => `/investorDetails/admin/byId/${id}?currencyIn=InvCur`,
+ providesTags: ["getInvestors"],
+ }),
+
}),
});
// Export hooks for usage in functional components
-export const { useGetInvestorsQuery, useGetInvestorsDetailsByIdQuery } =
+export const { useGetInvestorsQuery, useGetInvestorsDetailsByIdQuery,useGetInvestorsDetailsById_InInvCurQuery } =
investorDetails;