@@ -21,13 +21,10 @@ import { ReactComponent as CelebatoryUnleashLogo } from 'assets/img/unleashHolid
21
21
import { DrawerMenu } from './DrawerMenu/DrawerMenu' ;
22
22
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig' ;
23
23
import { focusable } from 'themes/themeStyles' ;
24
- import { getCondensedRoutes , getRoutes } from 'component/menu/routes' ;
25
24
import DarkModeOutlined from '@mui/icons-material/DarkModeOutlined' ;
26
25
import LightModeOutlined from '@mui/icons-material/LightModeOutlined' ;
27
- import { filterByConfig , mapRouteLink } from 'component/common/util' ;
28
26
import { useThemeMode } from 'hooks/useThemeMode' ;
29
27
import { Notifications } from 'component/common/Notifications/Notifications' ;
30
- import { useAdminRoutes } from 'component/admin/useAdminRoutes' ;
31
28
import InviteLinkButton from './InviteLink/InviteLinkButton/InviteLinkButton' ;
32
29
import { useUiFlag } from 'hooks/useUiFlag' ;
33
30
import { CommandBar } from 'component/commandBar/CommandBar' ;
@@ -105,19 +102,6 @@ const Header = () => {
105
102
const toggleDrawer = ( ) => setOpenDrawer ( ( prev ) => ! prev ) ;
106
103
const celebatoryUnleash = useUiFlag ( 'celebrateUnleash' ) ;
107
104
108
- const routes = getRoutes ( ) ;
109
- const adminRoutes = useAdminRoutes ( ) ;
110
-
111
- const filteredMainRoutes = {
112
- mainNavRoutes : getCondensedRoutes ( routes . mainNavRoutes )
113
- . filter ( filterByConfig ( uiConfig ) )
114
- . map ( mapRouteLink ) ,
115
- mobileRoutes : getCondensedRoutes ( routes . mobileRoutes )
116
- . filter ( filterByConfig ( uiConfig ) )
117
- . map ( mapRouteLink ) ,
118
- adminRoutes,
119
- } ;
120
-
121
105
if ( smallScreen ) {
122
106
return (
123
107
< HeaderComponent position = 'static' >
@@ -139,7 +123,6 @@ const Header = () => {
139
123
links = { uiConfig . links }
140
124
open = { openDrawer }
141
125
toggleDrawer = { toggleDrawer }
142
- routes = { filteredMainRoutes }
143
126
/>
144
127
< StyledUserContainer >
145
128
< UserProfile />
0 commit comments