diff --git a/client/pages/dashboards/NexusDashboard.tsx b/client/pages/dashboards/NexusDashboard.tsx index a561f921..b1a8b799 100644 --- a/client/pages/dashboards/NexusDashboard.tsx +++ b/client/pages/dashboards/NexusDashboard.tsx @@ -410,52 +410,24 @@ export default function NexusDashboard() { {/* Contracts Tab */} - - - Active Contracts - Manage your ongoing work - - - {contracts.length === 0 ? ( -
- -

No active contracts

-
- ) : ( -
- {contracts.map((contract: any) => ( -
-
-
-

{contract.title}

-

Total: ${contract.total_amount?.toLocaleString()}

-
- {contract.status} -
- - {/* Milestones */} - {contract.milestones?.length > 0 && ( -
-

Progress

-
- {contract.milestones.map((m: any) => ( -
- - {m.description} - ${m.amount?.toLocaleString()} -
- ))} -
-
- )} -
- ))} -
- )} -
-
+ ({ + id: c.id, + title: c.title || "Untitled Contract", + client_name: c.client?.full_name || "Client", + status: c.status || "active", + total_amount: c.total_amount || 0, + paid_amount: c.payments?.reduce((sum: number, p: any) => sum + (p.amount || 0), 0) || 0, + start_date: c.start_date, + end_date: c.end_date, + description: c.description, + milestones: c.milestones || [], + }))} + title="My Active Contracts" + description="Manage your ongoing work and track payments" + type="creator" + accentColor="purple" + />
{/* Profile Tab */}