diff --git a/app/dashboard/storefront/customers/page.tsx b/app/dashboard/storefront/customers/page.tsx index bfbc53e..21edd31 100644 --- a/app/dashboard/storefront/customers/page.tsx +++ b/app/dashboard/storefront/customers/page.tsx @@ -133,7 +133,7 @@ export default function CustomerManagementPage() { })); }; - // Format date without time + // Format date with time const formatDate = (dateString: string | null | undefined) => { if (!dateString) return "N/A"; try { @@ -141,7 +141,9 @@ export default function CustomerManagementPage() { return new Intl.DateTimeFormat('en-GB', { day: '2-digit', month: 'short', - year: 'numeric' + year: 'numeric', + hour: '2-digit', + minute: '2-digit' }).format(date); } catch (error) { return "N/A"; @@ -219,6 +221,15 @@ export default function CustomerManagementPage() { + handleSort("lastOrderDate")} + > +
+ Last Order + +
+
Status @@ -247,6 +258,9 @@ export default function CustomerManagementPage() { {formatCurrency(customer.totalSpent)} + + {customer.lastOrderDate ? formatDate(customer.lastOrderDate) : "N/A"} + {customer.hasOrders ? (
@@ -381,11 +395,15 @@ export default function CustomerManagementPage() {
First Order:
-
{formatDate(selectedCustomer.firstOrderDate)}
+
+ {formatDate(selectedCustomer.firstOrderDate)} +
Last Order:
-
{formatDate(selectedCustomer.lastOrderDate)}
+
+ {formatDate(selectedCustomer.lastOrderDate)} +