Skip to content

Commit b3f48a9

Browse files
committed
remove defaultProps for PureDatagridBody
1 parent d8910d4 commit b3f48a9

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/ra-ui-materialui/src/list/datagrid/DatagridBody.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,12 @@ export interface DatagridBodyProps extends Omit<TableBodyProps, 'classes'> {
116116
// @ts-ignore
117117
DatagridBody.muiName = 'TableBody';
118118

119-
export const PureDatagridBody = memo(DatagridBody);
119+
export const PureDatagridBody = memo(() => (
120+
<DatagridBody row={<PureDatagridRow />} />
121+
));
120122

121123
// trick Material UI Table into thinking this is one of the child type it supports
122124
// @ts-ignore
123125
PureDatagridBody.muiName = 'TableBody';
124-
// @ts-ignore
125-
PureDatagridBody.defaultProps = {
126-
row: <PureDatagridRow />,
127-
};
128126

129127
export default DatagridBody;

0 commit comments

Comments
 (0)