Skip to content

Commit f79a6be

Browse files
committed
fix(reactjs-components): Grid type
1 parent fd304d6 commit f79a6be

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/grid/types.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export type GridRow = {
2727
};
2828

2929
export interface GridRendererProps {
30-
cellComponent: React.FunctionComponent<{ cell: any; dimensions: GridDimensions }>;
30+
cellComponent: React.FunctionComponent<{
31+
cell: any;
32+
dimensions: GridDimensions;
33+
children?: FunctionComponent<any>;
34+
}>;
3135
type: GridRenderingType;
3236
grid: {
3337
rows: GridRow[];
@@ -38,7 +42,11 @@ export interface GridRendererProps {
3842
}
3943

4044
export interface CSSGridProps {
41-
cellComponent: React.FunctionComponent<{ cell: any; dimensions: GridDimensions }>;
45+
cellComponent: React.FunctionComponent<{
46+
cell: any;
47+
dimensions: GridDimensions;
48+
children?: FunctionComponent<any>;
49+
}>;
4250
cells: GridCell[];
4351
children?: FunctionComponent<any>;
4452
dimensions: GridDimensions;

0 commit comments

Comments
 (0)