From 88af7f723f795119faa56cd90f76c41a9342d5bb Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Wed, 23 Oct 2024 20:58:20 +0300 Subject: [PATCH] Review feedback --- .../default-queue-table.component.tsx | 23 ++++++++++--------- .../src/queue-table/queue-table.component.tsx | 8 ++----- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/packages/esm-service-queues-app/src/queue-table/default-queue-table.component.tsx b/packages/esm-service-queues-app/src/queue-table/default-queue-table.component.tsx index 5edc2548f..2b2fa127f 100644 --- a/packages/esm-service-queues-app/src/queue-table/default-queue-table.component.tsx +++ b/packages/esm-service-queues-app/src/queue-table/default-queue-table.component.tsx @@ -133,17 +133,18 @@ function DefaultQueueTable() { queueUuid={null} statusUuid={null} ExpandedRow={QueueTableExpandedRow} - tableFilters={[ - , - , - setSearchTerm(e.target.value)} - placeholder={t('searchThisList', 'Search this list')} - size={isDesktop(layout) ? 'sm' : 'lg'} - />, - , - ]} + tableFilters={ + <> + + setSearchTerm(e.target.value)} + placeholder={t('searchThisList', 'Search this list')} + size={isDesktop(layout) ? 'sm' : 'lg'} + /> + + + } /> ) : ( diff --git a/packages/esm-service-queues-app/src/queue-table/queue-table.component.tsx b/packages/esm-service-queues-app/src/queue-table/queue-table.component.tsx index f11a372d2..7a8f14025 100644 --- a/packages/esm-service-queues-app/src/queue-table/queue-table.component.tsx +++ b/packages/esm-service-queues-app/src/queue-table/queue-table.component.tsx @@ -46,7 +46,7 @@ interface QueueTableProps { ExpandedRow?: FC<{ queueEntry: QueueEntry }>; // if provided, adds addition table toolbar elements - tableFilters?: React.ReactNode[]; + tableFilters?: React.ReactNode; isLoading?: boolean; } @@ -113,11 +113,7 @@ function QueueTable({ {tableFilters && ( - - {tableFilters.map((tableFilter, index) => ( - {tableFilter} - ))} - + {tableFilters} )}