mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
* dbeaver/pro#5753 feat: react-dnd * chore: fix after review --------- Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
10 lines
407 B
TypeScript
10 lines
407 B
TypeScript
import type { RenderEditCellProps } from 'react-data-grid';
|
|
import type { IInnerRow } from './IInnerRow.js';
|
|
import { TextEditor } from './editors/TextEditor.js';
|
|
|
|
export function mapEditCellRenderer(colIdx: number) {
|
|
return function RenderEditCell({ rowIdx, onClose }: RenderEditCellProps<IInnerRow, unknown>) {
|
|
return <TextEditor rowIdx={rowIdx} colIdx={colIdx} onClose={() => onClose()} />;
|
|
};
|
|
}
|