Skip to content

Commit

Permalink
[FIX] App.js 오탈자 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jh2ee committed Jul 18, 2023
1 parent 5d2e615 commit c1a2890
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
4 changes: 2 additions & 2 deletions job1/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BrowserRouter as Router, Routes, Route } from "react-router-dom";

import NavBar from "./Main/NavBar";
import Home from "./View/Home";
import Laws from "./Laws";
import Laws from "./View/Laws";
import Board from "./View/Board";
import News from "./View/News";

Expand All @@ -13,7 +13,7 @@ function App() {
<NavBar/>
<Routes>
<Route path='/' element={<Home/>} />
<Route path='law' element={<Laws/>} />
<Route path='/law' element={<Laws/>} />
<Route path='/board' element={<Board/>} />
<Route path='/news' element={<News/>} />
</Routes>
Expand Down
2 changes: 2 additions & 0 deletions job1/src/Main/NavBar.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import NavItems from "./NavItems";
import NavUser from "./NavUser";

function NavBar(){
return(
<div>
<NavItems/>
<NavUser/>
</div>
)
}
Expand Down
14 changes: 14 additions & 0 deletions job1/src/Main/NavUser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Link } from "react-router-dom";

function NavUser(){
return(
<div>
<Link to={'/login'} >로그인</Link>
<div>
<Link to={'/mypage'}></Link>
</div>
</div>
)
}

export default NavUser;
10 changes: 10 additions & 0 deletions job1/src/View/Login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

function Login(){
return(
<div>
로그인
</div>
)
}

export default Login;
10 changes: 10 additions & 0 deletions job1/src/View/MyPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

function MyPage(){
return(
<div>
my page
</div>
)
}

export default MyPage;

0 comments on commit c1a2890

Please sign in to comment.