Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -3,6 +3,7 @@ import styled from "styled-components"; | ... | @@ -3,6 +3,7 @@ import styled from "styled-components"; |
3 | import Menu from "../Routes/Menu/MenuContainer"; | 3 | import Menu from "../Routes/Menu/MenuContainer"; |
4 | import HomeMain from "./Home/HomeMain"; | 4 | import HomeMain from "./Home/HomeMain"; |
5 | import { Helmet } from "react-helmet"; | 5 | import { Helmet } from "react-helmet"; |
6 | +import { withRouter } from "react-router-dom"; | ||
6 | 7 | ||
7 | const HomeContainer = styled.div` | 8 | const HomeContainer = styled.div` |
8 | width: 100%; | 9 | width: 100%; |
... | @@ -11,7 +12,7 @@ const HomeContainer = styled.div` | ... | @@ -11,7 +12,7 @@ const HomeContainer = styled.div` |
11 | overflow: hidden; | 12 | overflow: hidden; |
12 | `; | 13 | `; |
13 | 14 | ||
14 | -export default () => { | 15 | +export default withRouter(({ match, history, location }) => { |
15 | return ( | 16 | return ( |
16 | <> | 17 | <> |
17 | <Helmet> | 18 | <Helmet> |
... | @@ -23,4 +24,4 @@ export default () => { | ... | @@ -23,4 +24,4 @@ export default () => { |
23 | </HomeContainer> | 24 | </HomeContainer> |
24 | </> | 25 | </> |
25 | ); | 26 | ); |
26 | -}; | 27 | +}); | ... | ... |
-
Please register or login to post a comment