diff --git a/src/app/portfolio/[uid]/page.tsx b/src/app/portfolio/[uid]/page.tsx index 14f0440..08f255e 100644 --- a/src/app/portfolio/[uid]/page.tsx +++ b/src/app/portfolio/[uid]/page.tsx @@ -243,7 +243,15 @@ export default async function Portfolio({ params }: { params: { uid: string } }) -
{deals && deals.length ? : undefined}
+
+ {deals && deals.length ? { + return { + name: deal.name, + amount: deal.amount, + date: deal.date, + }; + })} /> : undefined} +
diff --git a/src/components/modal.tsx b/src/components/modal.tsx index ed3c435..2de0b43 100644 --- a/src/components/modal.tsx +++ b/src/components/modal.tsx @@ -1,16 +1,20 @@ "use client"; -import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, - DialogTrigger, -} from "@/components/ui/dialog"; +import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog"; import { Button } from "./ui/button"; import { DataTable } from "./dataTable"; -export function Modal() { +export type Payment = { + data?: { + name?: string; + amount?: number; + avatar?: string; + date?: Date; + logo_url?: string; + status?: string; + profile_url?: string; + }[]; +}; +export function Modal({ data }: { data: Payment[] }) { return (
@@ -18,7 +22,7 @@ export function Modal() { - {/* */} +