Showing
2 changed files
with
4 additions
and
4 deletions
1 | import React from 'react'; | 1 | import React from 'react'; |
2 | import { createGlobalStyle } from 'styled-components'; | 2 | import { createGlobalStyle } from 'styled-components'; |
3 | import { BrowserRouter, Route, Switch } from 'react-router-dom'; | 3 | import { BrowserRouter, Route, Switch } from 'react-router-dom'; |
4 | -import Home from './pages/Home'; | 4 | +import HomePage from './pages/HomePage'; |
5 | import LoginPage from './pages/LoginPage'; | 5 | import LoginPage from './pages/LoginPage'; |
6 | import SearchPage from './pages/SearchPage'; | 6 | import SearchPage from './pages/SearchPage'; |
7 | 7 | ||
... | @@ -26,7 +26,7 @@ const App = () => ( | ... | @@ -26,7 +26,7 @@ const App = () => ( |
26 | <BrowserRouter> | 26 | <BrowserRouter> |
27 | <GlobalStyle /> | 27 | <GlobalStyle /> |
28 | <Switch> | 28 | <Switch> |
29 | - <Route path="/" exact component={Home} /> | 29 | + <Route path="/" exact component={HomePage} /> |
30 | <Route path="/login" exact component={LoginPage} /> | 30 | <Route path="/login" exact component={LoginPage} /> |
31 | <Route path="/search" exact component={SearchPage} /> | 31 | <Route path="/search" exact component={SearchPage} /> |
32 | </Switch> | 32 | </Switch> | ... | ... |
... | @@ -5,7 +5,7 @@ const Main = styled.div` | ... | @@ -5,7 +5,7 @@ const Main = styled.div` |
5 | width: 100%; | 5 | width: 100%; |
6 | `; | 6 | `; |
7 | 7 | ||
8 | -const Home = () => { | 8 | +const HomePage = () => { |
9 | return ( | 9 | return ( |
10 | <> | 10 | <> |
11 | <Main>Home</Main> | 11 | <Main>Home</Main> |
... | @@ -13,4 +13,4 @@ const Home = () => { | ... | @@ -13,4 +13,4 @@ const Home = () => { |
13 | ); | 13 | ); |
14 | }; | 14 | }; |
15 | 15 | ||
16 | -export default Home; | 16 | +export default HomePage; | ... | ... |
-
Please register or login to post a comment