Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
GCL_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
안형욱
2021-05-09 20:34:03 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d5a38c64356b395b488fb1949bb651988a2daaba
d5a38c64
1 parent
351d1100
chore: 컴포넌트 이름 변경('Home' to 'Homepage')
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
frontend/src/App.js
frontend/src/pages/Home.js → frontend/src/pages/HomePage.js
frontend/src/App.js
View file @
d5a38c6
import
React
from
'react'
;
import
{
createGlobalStyle
}
from
'styled-components'
;
import
{
BrowserRouter
,
Route
,
Switch
}
from
'react-router-dom'
;
import
Home
from
'./pages/Hom
e'
;
import
Home
Page
from
'./pages/HomePag
e'
;
import
LoginPage
from
'./pages/LoginPage'
;
import
SearchPage
from
'./pages/SearchPage'
;
...
...
@@ -26,7 +26,7 @@ const App = () => (
<
BrowserRouter
>
<
GlobalStyle
/>
<
Switch
>
<
Route
path
=
"/"
exact
component
=
{
Home
}
/
>
<
Route
path
=
"/"
exact
component
=
{
Home
Page
}
/
>
<
Route
path
=
"/login"
exact
component
=
{
LoginPage
}
/
>
<
Route
path
=
"/search"
exact
component
=
{
SearchPage
}
/
>
<
/Switch
>
...
...
frontend/src/pages/Home.js
→
frontend/src/pages/Home
Page
.js
View file @
d5a38c6
...
...
@@ -5,7 +5,7 @@ const Main = styled.div`
width: 100%;
`
;
const
Home
=
()
=>
{
const
Home
Page
=
()
=>
{
return
(
<>
<
Main
>
Home
<
/Main>
...
...
@@ -13,4 +13,4 @@ const Home = () => {
);
};
export
default
Home
;
export
default
Home
Page
;
...
...
Please
register
or
login
to post a comment