Update page.tsx

This commit is contained in:
NotII
2025-04-04 13:26:29 +01:00
parent d2fd47ff36
commit 1ca2920057

View File

@@ -145,7 +145,7 @@ export default function CustomerManagementPage() {
const handleItemsPerPageChange = (value: string) => {
setItemsPerPage(parseInt(value, 10));
setPage(1); // Reset to first page when changing items per page
setPage(1);
};
const handleSort = (column: "totalOrders" | "totalSpent" | "lastOrderDate") => {
@@ -159,7 +159,6 @@ export default function CustomerManagementPage() {
setSearchQuery("");
};
// Format date with time
const formatDate = (dateString: string | null | undefined) => {
if (!dateString) return "N/A";
try {