Add queue controls

This commit is contained in:
jeffvli
2022-12-10 05:41:56 -08:00
parent f48560ef60
commit b6c81183e9
9 changed files with 362 additions and 139 deletions
@@ -1,6 +1,6 @@
import type { Ref } from 'react';
import { forwardRef, useRef } from 'react';
import { useClickOutside, useMergedRef } from '@mantine/hooks';
import { useMergedRef } from '@mantine/hooks';
import type {
ICellRendererParams,
ValueGetterParams,
@@ -175,17 +175,8 @@ export const VirtualTable = forwardRef(
const mergedRef = useMergedRef(ref, tableRef);
const tableContainerRef = useClickOutside(() => {
if (tableRef?.current) {
tableRef?.current.api.deselectAll();
}
});
return (
<TableWrapper
ref={tableContainerRef}
className="ag-theme-alpine-dark"
>
<TableWrapper className="ag-theme-alpine-dark">
<AgGridReact
ref={mergedRef}
suppressMoveWhenRowDragging