Skip to content

Commit f0ef544

Browse files
committed
Update import for getComputedLanguage
Signed-off-by: achour94 <[email protected]>
1 parent 5e4330a commit f0ef544

File tree

5 files changed

+7
-27
lines changed

5 files changed

+7
-27
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.14.0",
1818
"@emotion/styled": "^11.14.0",
19-
"@gridsuite/commons-ui": "0.112.0",
19+
"@gridsuite/commons-ui": "file:../commons-ui/gridsuite-commons-ui-0.119.2.tgz",
2020
"@hookform/resolvers": "^4.0.0",
2121
"@mui/icons-material": "^5.16.14",
2222
"@mui/lab": "5.0.0-alpha.175",

src/components/App/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Grid } from '@mui/material';
1111
import {
1212
AnnouncementNotification,
1313
CardErrorBoundary,
14+
getComputedLanguage,
1415
NotificationsUrlKeys,
1516
useNotificationsListener,
1617
useSnackMessage,
@@ -19,7 +20,6 @@ import { selectComputedLanguage, selectLanguage, selectTheme } from '../../redux
1920
import { AppState } from '../../redux/reducer';
2021
import { ConfigParameters, ConfigSrv } from '../../services';
2122
import { APP_NAME, COMMON_APP_NAME, PARAM_LANGUAGE, PARAM_THEME } from '../../utils/config-params';
22-
import { getComputedLanguage } from '../../utils/language';
2323
import AppTopBar from './app-top-bar';
2424
import { useDebugRender } from '../../utils/hooks';
2525
import { AppDispatch } from '../../redux/store';

src/redux/local-storage.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
*/
77

8-
import { DARK_THEME, GsLang, GsTheme, LANG_SYSTEM } from '@gridsuite/commons-ui';
9-
import { getComputedLanguage } from '../utils/language';
8+
import { DARK_THEME, getComputedLanguage, GsLang, GsTheme, LANG_SYSTEM } from '@gridsuite/commons-ui';
109
import { APP_NAME } from '../utils/config-params';
1110

1211
const LOCAL_STORAGE_THEME_KEY = (APP_NAME + '_THEME').toUpperCase();

src/utils/language.ts

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

0 commit comments

Comments
 (0)