-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRouter.js
42 lines (41 loc) · 1.73 KB
/
Router.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
34
35
36
37
38
39
40
41
42
import React from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import Main from './pages/Main/Main';
import Login from './pages/Login/Login';
import Header from './pages/Main/Header/Header';
import SubNav from './pages/Main/SubNav/SubNav';
import LoginKakao from './pages/Login/LoginKakao';
import LoginNaver from './pages/Login/LoginNaver';
import CommunityList from './pages/CommunityList/CommunityList';
import Trainers from './pages/Trainers/Trainers';
import ModiInfo from './pages/ModiInfo/ModiInfo';
import MyPage from './pages/MyPage/MyPage';
import Signup from './pages/Signup/Signup';
import CommunityPost from './pages/CommunityPost/CommunityPost';
import Record from './pages/Record/Record';
import CommunityDetail from './pages/CommunityDetail/CommunityDetail';
import Pay from './pages/Pay/Pay';
const Router = () => {
return (
<BrowserRouter>
<Header />
<SubNav />
<Routes>
<Route path="/" element={<Main />} />
<Route path="/login" element={<Login />} />
<Route path="/login/naver" element={<LoginNaver />} />
<Route path="/login/kakao" element={<LoginKakao />} />
<Route path="/communitylist" element={<CommunityList />} />
<Route path="/trainer" element={<Trainers />} />
<Route path="/modiInfo" element={<ModiInfo />} />
<Route path="/my-page" element={<MyPage />} />
<Route path="/signup" element={<Signup />} />
<Route path="/communitypost" element={<CommunityPost />} />
<Route path="/record" element={<Record />} />
<Route path="/communitydetail" element={<CommunityDetail />} />
<Route path="/pay" element={<Pay />} />
</Routes>
</BrowserRouter>
);
};
export default Router;