diff --git a/packages/web/src/routes.tsx b/packages/web/src/routes.tsx index 72ff2781..edc88214 100644 --- a/packages/web/src/routes.tsx +++ b/packages/web/src/routes.tsx @@ -18,9 +18,11 @@ import * as URLS from 'config/urls'; import settingsRoutes from './settingsRoutes'; import adminSettingsRoutes from './adminSettingsRoutes'; import Notifications from 'pages/Notifications'; +import useConfig from 'hooks/useConfig'; import useAuthentication from 'hooks/useAuthentication'; function Routes() { + const { config } = useConfig(); const { isAuthenticated } = useAuthentication(); return ( @@ -119,14 +121,16 @@ function Routes() { } /> - - - - } - /> + {!config?.disableNotificationsPage && ( + + + + } + /> + )}