- {/* {deals && deals.length ? {
- return {
- name: deal.name,
- amount: deal.amount,
- date: deal.date,
- };
- })} /> : undefined} */}
+ {/* {latestDeals.length} */}
+ {deals && deals.length ? (
+ {
+ return {
+ date: item.date,
+ name: item.name,
+ amount: item.amount,
+ status: item.status,
+ logoURL: item.logo_url,
+ profileURL: `deals/${item.projectId}`
+ };
+ })}
+ />
+ ) : undefined}
diff --git a/src/components/dataTable.tsx b/src/components/dataTable.tsx
index e7f5d96..d4d80f3 100644
--- a/src/components/dataTable.tsx
+++ b/src/components/dataTable.tsx
@@ -26,19 +26,17 @@ import {
import { Input } from "@/components/ui/input";
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
-export type Payment = {
- data?: {
- name?: string;
- amount?: number;
- avatar?: string;
- date?: Date;
- logo_url?: string;
- status?: string;
- profile_url?: string;
- }[];
+export type ModalProps = {
+ date: Date;
+ amount: number;
+ name: string;
+ investorId?: string;
+ profileURL?: string;
+ logoURL?: string;
+ status?: string;
};
-export const columns: ColumnDef