diff --git a/src/app/portfolio/[uid]/page.tsx b/src/app/portfolio/[uid]/page.tsx
index 3cdc730..dd8ec1a 100644
--- a/src/app/portfolio/[uid]/page.tsx
+++ b/src/app/portfolio/[uid]/page.tsx
@@ -1,6 +1,6 @@
import { Overview } from "@/components/ui/overview";
import { createSupabaseClient } from "@/lib/supabase/serverComponentClient";
-import { getInvestorDeal } from "@/lib/data/query";
+import { getInvestorDeal } from "@/lib/data/investmentQuery";
import PieChart from "@/components/pieChart";
import {
overAllGraphData,
@@ -16,12 +16,7 @@ import {
} from "./hook";
import CountUpComponent from "@/components/countUp";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
-import {
- Tooltip,
- TooltipContent,
- TooltipProvider,
- TooltipTrigger,
-} from "@/components/ui/tooltip";
+import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
import { RecentFunds } from "@/components/recent-funds";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import QuestionMarkIcon from "@/components/icon/questionMark";
@@ -29,11 +24,7 @@ import { NoDataAlert } from "@/components/alert/noData/alert";
import { error } from "console";
import { UnAuthorizedAlert } from "@/components/alert/unauthorized/alert";
-export default async function Portfolio({
- params,
-}: {
- params: { uid: string };
-}) {
+export default async function Portfolio({ params }: { params: { uid: string } }) {
const supabase = createSupabaseClient();
// if user hasn't invest in anything
const hasInvestments = await checkForInvest(supabase, params.uid);
@@ -44,15 +35,11 @@ export default async function Portfolio({
);
}
- const { data: deals, error: investorDealError } = await getInvestorDeal(
- supabase,
- params.uid
- );
+ const { data: deals, error: investorDealError } = await getInvestorDeal(supabase, params.uid);
if (investorDealError) {
console.error(investorDealError);
}
- const { data: localUser, error: localUserError } =
- await supabase.auth.getUser();
+ const { data: localUser, error: localUserError } = await supabase.auth.getUser();
if (localUserError) {
console.error("Error while fetching user" + error);
}
@@ -76,15 +63,9 @@ export default async function Portfolio({
const tagCount = countTags(tags);
// console.log(investedBusinessIds);
const businessType = deals
- ? await Promise.all(
- deals.map(
- async (item) => await getBusinessTypeName(supabase, item.project_id)
- )
- )
+ ? await Promise.all(deals.map(async (item) => await getBusinessTypeName(supabase, item.project_id)))
: [];
- const countedBusinessType = countValues(
- businessType.filter((item) => item !== null)
- );
+ const countedBusinessType = countValues(businessType.filter((item) => item !== null));
// console.log(countedBusinessType);
// console.log(tagCount);
@@ -103,9 +84,7 @@ export default async function Portfolio({
*/}
{/*
Here‘s an overview of your investment journey and progress.
@@ -125,9 +104,7 @@ export default async function Portfolio({
- Displays total investments each month over the past 12{" "}
-
+ Displays total investments each month over the past 12
months, up to today.
- Shows total investments for each of the last four years,{" "}
-
+ Shows total investments for each of the last four years,
including the current year to date.
- Illustrates total investments for each day over the past{" "}
-
+ Illustrates total investments for each day over the past
year, up to today.
- Shows the breakdown of business types in your portfolio,{" "}
-
+ Shows the breakdown of business types in your portfolio,
illustrating sector diversity.