mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
Refactor context menu handler into hook
This commit is contained in:
parent
2edffa02d0
commit
7d8cb0bb45
11 changed files with 88 additions and 191 deletions
|
|
@ -1,9 +1,14 @@
|
|||
import { RowNode } from '@ag-grid-community/core';
|
||||
import type { AgGridReact as AgGridReactType } from '@ag-grid-community/react/lib/agGridReact';
|
||||
import { createUseExternalEvents } from '@mantine/utils';
|
||||
import { MutableRefObject } from 'react';
|
||||
import { LibraryItem } from '/@/renderer/api/types';
|
||||
|
||||
export type OpenContextMenuProps = {
|
||||
data: any[];
|
||||
dataNodes?: RowNode[];
|
||||
menuItems: SetContextMenuItems;
|
||||
tableRef?: MutableRefObject<AgGridReactType | null>;
|
||||
type: LibraryItem;
|
||||
xPos: number;
|
||||
yPos: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue