diff --git a/apps/edr-freight-web/portal/src/pages/MyPortalPage.tsx b/apps/edr-freight-web/portal/src/pages/MyPortalPage.tsx index 63fdd014a..440617f3e 100644 --- a/apps/edr-freight-web/portal/src/pages/MyPortalPage.tsx +++ b/apps/edr-freight-web/portal/src/pages/MyPortalPage.tsx @@ -84,13 +84,19 @@ export default function MyPortalPage() {
- - @@ -99,83 +105,6 @@ export default function MyPortalPage() {
- {/* My KPIs */} -
- - -
-

Active Bookings

-

- {activeBookings.length} -

-

- {myBookings.length} total -

-
-
- -
-
-
- - - -
-

In Transit

-

- {activeShipments.length} -

-

- {myShipments.length} shipments -

-
-
- -
-
-
- - - -
-

Outstanding

-

- {formatCurrency(totalOutstanding, "USD")} -

-

- {outstandingInvoices.length} invoices -

-
-
i.status === "Overdue") - ? "bg-red-100 text-red-600" - : "bg-primary/10 text-primary" - }`} - > - -
-
-
- - - -
-

Total Spent

-

- {formatCurrency(totalSpent, "USD")} -

-

- All-time, paid invoices -

-
-
- -
-
-
-
- {/* Active Shipments */} @@ -237,119 +166,76 @@ export default function MyPortalPage() { - {/* Recent Bookings + Profile */} -
- {/* Recent bookings */} - - -
- Recent Bookings - - Your latest freight requests - -
- - View all - - -
+ {/* Recent bookings */} + + +
+ Recent Bookings + Your latest freight requests +
+ + View all + + +
- - {recentBookings.length === 0 ? ( -

- You haven't booked any freight yet. -

- ) : ( -
- - - - - - - - + + {recentBookings.length === 0 ? ( +

+ You haven't booked any freight yet. +

+ ) : ( +
+
ReferenceRouteCargoStatusAction
+ + + + + + + + + + + {recentBookings.map((booking) => ( + + + + + + - - - {recentBookings.map((booking) => ( - - - - - - - - ))} - -
ReferenceRouteCargoStatus + Action +
+ {booking.reference} + + {booking.originStation} → {booking.destinationStation} + + {booking.cargoType} + + + + + + +
- {booking.reference} - - {booking.originStation} → {booking.destinationStation} - - {booking.cargoType} - - - - - - -
-
- )} -
-
- - {/* Profile card */} - - - My Profile - Account information - - -
- } - label="Company" - value={me.company} - /> - } - label="Email" - value={me.email} - /> - } - label="Phone" - value={me.phone} - /> - } - label="Location" - value={`${me.city}, ${me.country}`} - /> + ))} + +
- - - View full profile - - -
-
-
+ )} + + {/* Invoices */}