-
Notifications
You must be signed in to change notification settings - Fork 32
/
App.js
33 lines (29 loc) · 843 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from 'react';
import Helmet from 'react-helmet';
import { useStore } from './stores';
import { observer } from 'mobx-react-lite';
import { useTracking } from './hooks/useTracking';
import { RenderRoutes as Routes } from './routes/RenderRoutes';
import { Header } from './components';
import styled from 'styled-components/macro';
function App() {
const store = useStore();
useTracking();
return (
<AppWrapper>
<Helmet
titleTemplate="%s - קילומטר אחד"
defaultTitle="קילומטר אחד"
onChangeClientState={(newState) => store.setCurrentPageTitle(newState.title)}
></Helmet>
<Header />
<Routes />
</AppWrapper>
);
}
const AppWrapper = styled.div`
display: grid;
grid-template-rows: 60px 1fr;
min-height: 100vh;
`;
export default observer(App);