From f35937e1710e28a9f0d352b28ca910d253d364d5 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Wed, 18 Dec 2024 12:02:49 +0000 Subject: [PATCH] feat: show a message when all orders are being shown --- .../orders/OrdersUserDetailsTable/index.tsx | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx b/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx index 232d3fbf94..0efd2ec7e8 100644 --- a/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx +++ b/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx @@ -262,23 +262,28 @@ const OrdersUserDetailsTable: React.FC = (props) => {
- {hiddenOrdersCount > 0 && ( - -

- Showing {orders.length - hiddenOrdersCount} out of {orders.length} orders for the current page. -

-

- {hiddenOrdersCount} orders are hidden, you can make them visible using the filters below - {tableState.hasNextPage ? ( - - , or go to next page for more orders. - - ) : ( - '.' - )} -

-
- )} + + {hiddenOrdersCount > 0 ? ( + <> +

+ Showing {orders.length - hiddenOrdersCount} out of {orders.length} orders for the current + page. +

+

+ {hiddenOrdersCount} orders are hidden, you can make them visible using the filters below + {tableState.hasNextPage ? ( + + , or go to next page for more orders. + + ) : ( + '.' + )} +

+ + ) : ( +

Showing all {orders.length} orders for the current page.

+ )} +
{canceledAndExpiredCount > 0 && (