Skip to content

Commit 637cf5a

Browse files
update commons-ui
1 parent e28d718 commit 637cf5a

File tree

5 files changed

+9
-25
lines changed

5 files changed

+9
-25
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dependencies": {
1717
"@emotion/react": "^11.11.4",
1818
"@emotion/styled": "^11.11.5",
19-
"@gridsuite/commons-ui": "file:../commons-ui/gridsuite-commons-ui-0.63.2.tgz",
19+
"@gridsuite/commons-ui": "file:../commons-ui/gridsuite-commons-ui-0.63.4.tgz",
2020
"@hookform/resolvers": "^3.3.4",
2121
"@mui/icons-material": "^5.15.14",
2222
"@mui/lab": "5.0.0-alpha.169",

src/components/App/app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ import {
1515
getComputedLanguage,
1616
PARAM_LANGUAGE,
1717
PARAM_THEME,
18+
useDebugLog,
1819
useSnackMessage,
1920
} from '@gridsuite/commons-ui';
2021
import { selectComputedLanguage, selectLanguage, selectTheme } from '../../redux/actions';
2122
import { AppState } from '../../redux/reducer';
2223
import { configNotificationSrv, configSrv } from '../../services';
2324
import { APP_NAME } from '../../utils/config-params';
2425
import AppTopBar from './app-top-bar';
25-
import { useDebugRender } from '../../utils/hooks';
2626
import { AppDispatch } from '../../redux/store';
2727

2828
const App: FunctionComponent<PropsWithChildren<{}>> = (props, context) => {
29-
useDebugRender('app');
29+
useDebugLog('app');
3030
const { snackError } = useSnackMessage();
3131
const dispatch = useDispatch<AppDispatch>();
3232
const user = useSelector((state: AppState) => state.user ?? null);

src/components/Grid/AgGrid.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ import {
2222
import { Box, useTheme } from '@mui/material';
2323
import { AgGridReact } from 'ag-grid-react';
2424
import { useIntl } from 'react-intl';
25-
import { LANG_FRENCH } from '@gridsuite/commons-ui';
25+
import { LANG_FRENCH, useDebugLog } from '@gridsuite/commons-ui';
2626
import { AG_GRID_LOCALE_FR } from '../../translations/ag-grid/locales';
2727
import { GridOptions } from 'ag-grid-community';
28-
import { useDebugRender } from '../../utils/hooks';
2928

3029
const messages: Record<string, Record<string, string>> = {
3130
[LANG_FRENCH]: AG_GRID_LOCALE_FR,
@@ -70,7 +69,7 @@ export const AgGrid: AgGridWithRef = forwardRef(function AgGrid<TData, TContext
7069
const theme = useTheme();
7170

7271
const id = useId();
73-
useDebugRender(`ag-grid(${id}) ${props.gridId}`);
72+
useDebugLog(`ag-grid(${id}) ${props.gridId}`);
7473

7574
const agGridRef = useRef<AgGridReact<TData>>(null);
7675
const agGridRefContent = agGridRef.current;

src/utils/hooks.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)