Skip to content

Commit

Permalink
fix!: update EuiDataGridCellProps renderCellValue types to fix type i…
Browse files Browse the repository at this point in the history
…nference issues on React 18
  • Loading branch information
tkajtoch committed Jul 18, 2023
1 parent 62ef4b0 commit d75b55b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/datagrid/data_grid_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
Ref,
Component,
PropsWithChildren,
ComponentClass,
} from 'react';
import {
VariableSizeGridProps,
Expand Down Expand Up @@ -582,8 +583,8 @@ export interface EuiDataGridCellProps {
className?: string;
popoverContext: DataGridCellPopoverContextShape;
renderCellValue:
| JSXElementConstructor<EuiDataGridCellValueElementProps>
| ((props: EuiDataGridCellValueElementProps) => ReactNode);
| ((props: EuiDataGridCellValueElementProps) => ReactNode)
| ComponentClass<EuiDataGridCellValueElementProps>;
renderCellPopover?:
| JSXElementConstructor<EuiDataGridCellPopoverElementProps>
| ((props: EuiDataGridCellPopoverElementProps) => ReactNode);
Expand Down

0 comments on commit d75b55b

Please sign in to comment.