Skip to content

Commit 0af45ca

Browse files
authored
showOverlay not used anymore (#733)
Signed-off-by: David BRAQUART <[email protected]>
1 parent bdf82a2 commit 0af45ca

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/components/customAGGrid/customAggrid.style.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,4 @@ export const styles = {
4949
borderRight: 'none',
5050
},
5151
},
52-
overlayBackground: (theme: Theme) => ({
53-
'& .ag-overlay-loading-wrapper': {
54-
background: theme.aggrid.overlay.background,
55-
},
56-
'& .ag-overlay-no-rows-wrapper': {
57-
background: 'none',
58-
},
59-
}),
6052
};

src/components/customAGGrid/customAggrid.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { CUSTOM_AGGRID_THEME, styles } from './customAggrid.style';
1717

1818
interface CustomAGGGridStyleProps {
1919
shouldHidePinnedHeaderRightBorder?: boolean;
20-
showOverlay?: boolean;
2120
}
2221

2322
export interface CustomAGGridProps extends AgGridReactProps, CustomAGGGridStyleProps {}
@@ -35,7 +34,7 @@ const onColumnResized = (params: ColumnResizedEvent) => {
3534
};
3635

3736
export const CustomAGGrid = React.forwardRef<AgGridReact, CustomAGGridProps>((props, ref) => {
38-
const { shouldHidePinnedHeaderRightBorder = false, showOverlay = false, ...agGridReactProps } = props;
37+
const { shouldHidePinnedHeaderRightBorder = false, ...agGridReactProps } = props;
3938
const theme = useTheme<Theme>();
4039
const intl = useIntl();
4140

@@ -56,8 +55,7 @@ export const CustomAGGrid = React.forwardRef<AgGridReact, CustomAGGridProps>((pr
5655
<Box
5756
sx={mergeSx(
5857
styles.grid as SxProps | undefined,
59-
shouldHidePinnedHeaderRightBorder ? styles.noBorderRight : undefined,
60-
showOverlay ? (styles.overlayBackground as SxProps | undefined) : undefined
58+
shouldHidePinnedHeaderRightBorder ? styles.noBorderRight : undefined
6159
)}
6260
className={`${theme.aggrid.theme} ${CUSTOM_AGGRID_THEME}`}
6361
>

0 commit comments

Comments
 (0)