8
8
import { FunctionComponent , PropsWithChildren , useCallback , useEffect } from 'react' ;
9
9
import { useDispatch , useSelector } from 'react-redux' ;
10
10
import { Grid } from '@mui/material' ;
11
- import { CardErrorBoundary , useNotificationsListener , useSnackMessage } from '@gridsuite/commons-ui' ;
11
+ import {
12
+ CardErrorBoundary ,
13
+ NotificationsUrlKeys ,
14
+ useNotificationsListener ,
15
+ useSnackMessage ,
16
+ } from '@gridsuite/commons-ui' ;
12
17
import { selectComputedLanguage , selectLanguage , selectTheme } from '../../redux/actions' ;
13
18
import { AppState } from '../../redux/reducer' ;
14
19
import { ConfigParameters , ConfigSrv } from '../../services' ;
@@ -17,7 +22,6 @@ import { getComputedLanguage } from '../../utils/language';
17
22
import AppTopBar from './app-top-bar' ;
18
23
import { useDebugRender } from '../../utils/hooks' ;
19
24
import { AppDispatch } from '../../redux/store' ;
20
- import { NOTIFICATIONS_URL_KEYS } from '../../utils/notifications-provider' ;
21
25
22
26
const App : FunctionComponent < PropsWithChildren < { } > > = ( props , context ) => {
23
27
useDebugRender ( 'app' ) ;
@@ -59,7 +63,7 @@ const App: FunctionComponent<PropsWithChildren<{}>> = (props, context) => {
59
63
[ updateParams , snackError ]
60
64
) ;
61
65
62
- useNotificationsListener ( NOTIFICATIONS_URL_KEYS . CONFIG , { listenerCallbackMessage : updateConfig } ) ;
66
+ useNotificationsListener ( NotificationsUrlKeys . CONFIG , { listenerCallbackMessage : updateConfig } ) ;
63
67
64
68
useEffect ( ( ) => {
65
69
if ( user !== null ) {
0 commit comments