@@ -16,7 +16,7 @@ import {
16
16
} from 'react' ;
17
17
import { capitalize , Tab , Tabs , useTheme } from '@mui/material' ;
18
18
import { Groups , ManageAccounts , NotificationImportant , PeopleAlt } from '@mui/icons-material' ;
19
- import { fetchAppsMetadata , logout , Metadata , TopBar , useGlobalAnnouncement } from '@gridsuite/commons-ui' ;
19
+ import { fetchAppsMetadata , logout , Metadata , TopBar } from '@gridsuite/commons-ui' ;
20
20
import { useParameterState } from '../parameters' ;
21
21
import { APP_NAME , PARAM_LANGUAGE , PARAM_THEME } from '../../utils/config-params' ;
22
22
import { NavLink , type To , useMatches , useNavigate } from 'react-router' ;
@@ -111,8 +111,6 @@ const AppTopBar: FunctionComponent = () => {
111
111
112
112
const [ appsAndUrls , setAppsAndUrls ] = useState < Metadata [ ] > ( [ ] ) ;
113
113
114
- const announcementInfos = useGlobalAnnouncement ( user ) ;
115
-
116
114
useEffect ( ( ) => {
117
115
if ( user !== null ) {
118
116
fetchAppsMetadata ( ) . then ( ( res ) => {
@@ -139,7 +137,6 @@ const AppTopBar: FunctionComponent = () => {
139
137
onLanguageClick = { handleChangeLanguage }
140
138
language = { languageLocal }
141
139
developerMode = { false } // TODO: set as optional in commons-ui
142
- announcementInfos = { announcementInfos }
143
140
>
144
141
< Tabs
145
142
component = "nav"
0 commit comments