diff --git a/src/components/customAGGrid/customAggrid.tsx b/src/components/customAGGrid/customAggrid.tsx index 597d0f34..7e2708f6 100644 --- a/src/components/customAGGrid/customAggrid.tsx +++ b/src/components/customAGGrid/customAggrid.tsx @@ -37,13 +37,7 @@ const onColumnResized = (params: ColumnResizedEvent) => { }; export const CustomAGGrid = React.forwardRef((props, ref) => { - const { - shouldHidePinnedHeaderRightBorder = false, - overlayNoRowsTemplate, - loadingOverlayComponent, - loadingOverlayComponentParams, - showOverlay = false, - } = props; + const { shouldHidePinnedHeaderRightBorder = false, showOverlay = false, ...agGridReactProps } = props; const theme = useTheme(); const intl = useIntl(); @@ -73,12 +67,9 @@ export const CustomAGGrid = React.forwardRef((pr ref={ref} getLocaleText={getLocaleText} suppressPropertyNamesCheck - loadingOverlayComponent={loadingOverlayComponent} - loadingOverlayComponentParams={loadingOverlayComponentParams} - overlayNoRowsTemplate={overlayNoRowsTemplate} onColumnResized={onColumnResized} enableCellTextSelection - {...props} + {...agGridReactProps} /> );