From 6cd658c4cbbd36f162126384740873ab029900f7 Mon Sep 17 00:00:00 2001 From: g Date: Mon, 12 Jan 2026 08:28:36 +0000 Subject: [PATCH] Revamp OrderTable UI and add Firefox animation fallback Updated the OrderTable component with a new dark-themed UI, improved color schemes, and enhanced button and table styles. Added browser detection to provide a simplified animation experience for Firefox users, ensuring compatibility and smoother rendering. Improved loading state visuals and refined table header and cell styling for better readability. --- components/tables/order-table.tsx | 230 +++++++++++++++++++++++------- 1 file changed, 181 insertions(+), 49 deletions(-) diff --git a/components/tables/order-table.tsx b/components/tables/order-table.tsx index 2f983f4..6fb7ee0 100644 --- a/components/tables/order-table.tsx +++ b/components/tables/order-table.tsx @@ -157,6 +157,13 @@ export default function OrderTable() { }, []); // Fetch orders with server-side pagination + // State for browser detection + const [isFirefox, setIsFirefox] = useState(false); + + useEffect(() => { + setIsFirefox(navigator.userAgent.toLowerCase().indexOf("firefox") > -1); + }, []); + const fetchOrders = useCallback(async () => { try { setLoading(true); @@ -394,9 +401,9 @@ export default function OrderTable() { return (
- + {/* Filters header */} -
+
{exporting ? ( <> @@ -436,7 +443,7 @@ export default function OrderTable() {
-