Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Use virtual table
Browse files Browse the repository at this point in the history
  • Loading branch information
khelif96 committed Jan 11, 2024
1 parent 118cb96 commit 1eca239
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/pages/taskQueue/TaskQueueTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const TaskQueueTable: React.FC<TaskQueueTableProps> = ({
columns,
containerRef: tableContainerRef,
enableColumnFilters: false,
useVirtualScrolling: true,
});

return (
Expand All @@ -48,6 +49,7 @@ const TaskQueueTable: React.FC<TaskQueueTableProps> = ({
loading={loading && taskQueue?.length === 0}
shouldAlternateRowColor
emptyComponent={<TablePlaceholder message="No tasks found in queue." />}
ref={tableContainerRef}
/>
);
};
Expand Down
5 changes: 3 additions & 2 deletions src/pages/taskQueue/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
import { DISTRO_TASK_QUEUE, TASK_QUEUE_DISTROS } from "gql/queries";
import { usePageTitle } from "hooks";
import { DistroOption } from "./DistroOption";
import TaskQueueTable from "./TaskQueueTable";

const TaskQueue = () => {
const taskQueueAnalytics = useTaskQueueAnalytics();
Expand Down Expand Up @@ -116,10 +117,10 @@ const TaskQueue = () => {
)
}

{/* <TaskQueue Table
<TaskQueueTable
taskQueue={taskQueueItemsData?.distroTaskQueue}
loading={loading}
/> */}
/>
</>
)}
</PageWrapper>
Expand Down

0 comments on commit 1eca239

Please sign in to comment.