|
1 | 1 | import '@/styles/index.css'; |
| 2 | +import { Route, Routes } from 'react-router'; |
| 3 | + |
| 4 | +import Home from './pages/Home'; |
| 5 | +import LetterBoardPage from './pages/LetterBoard'; |
| 6 | +import LetterBoardDetailPage from './pages/LetterBoardDetail'; |
| 7 | +import LetterBoxPage from './pages/LetterBox'; |
| 8 | +import LetterDetailPage from './pages/LetterDetail'; |
| 9 | +import LoginPage from './pages/Login'; |
| 10 | +import MyPage from './pages/MyPage'; |
| 11 | +import NotificationsPage from './pages/Notifications'; |
| 12 | +import OnboardingPage from './pages/Onboarding'; |
| 13 | +import RandomLettersPage from './pages/RandomLetters'; |
| 14 | +import RollingPaperPage from './pages/RollingPaper'; |
| 15 | +import WritePage from './pages/Write'; |
2 | 16 |
|
3 | 17 | const App = () => { |
4 | | - return <div>App</div>; |
| 18 | + return ( |
| 19 | + <Routes> |
| 20 | + <Route> |
| 21 | + <Route index element={<Home />} /> |
| 22 | + <Route path="login" element={<LoginPage />} /> |
| 23 | + <Route path="onboarding" element={<OnboardingPage />} /> |
| 24 | + <Route path="letter"> |
| 25 | + <Route path="random" element={<RandomLettersPage />} /> |
| 26 | + <Route path="box" element={<LetterBoxPage />} /> |
| 27 | + <Route path="write" element={<WritePage />} /> |
| 28 | + <Route path=":id" element={<LetterDetailPage />} /> |
| 29 | + </Route> |
| 30 | + <Route path="board"> |
| 31 | + <Route path="letter" element={<LetterBoardPage />} /> |
| 32 | + <Route path="letter/:id" element={<LetterBoardDetailPage />} /> |
| 33 | + <Route path="rolling/:id" element={<RollingPaperPage />} /> |
| 34 | + </Route> |
| 35 | + <Route path="mypage"> |
| 36 | + <Route index element={<MyPage />} /> |
| 37 | + <Route path="notifications" element={<NotificationsPage />} /> |
| 38 | + </Route> |
| 39 | + </Route> |
| 40 | + </Routes> |
| 41 | + ); |
5 | 42 | }; |
6 | 43 |
|
7 | 44 | export default App; |
0 commit comments