Show global notices in all pages

[MAILPOET-2390]
This commit is contained in:
Amine Ben hammou
2019-12-12 14:23:15 +01:00
committed by Jack Kitterhing
parent 3660271fad
commit 3fc48006c2
13 changed files with 56 additions and 19 deletions

View File

@@ -9,10 +9,12 @@ import SystemInfo from 'help/system_info.jsx';
import SystemStatus from 'help/system_status.jsx';
import YourPrivacy from 'help/your_privacy.jsx';
import { GlobalContext, useGlobalContextValue } from 'context/index.jsx';
import Notices from 'notices/notices.jsx';
const App = () => (
<GlobalContext.Provider value={useGlobalContextValue(window)}>
<HashRouter>
<Notices />
<Switch>
<Route exact path="/" render={() => <Redirect to="/knowledgeBase" />} />
<Route path="/knowledgeBase" component={KnowledgeBase} />