Skip to content

Commit

Permalink
[Feat] Mypage 제작 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
OhJungJin committed Sep 22, 2022
1 parent 90af23b commit 9ab0134
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/pages/MainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ function MainPage() {
);
}


export default MainPage;
12 changes: 12 additions & 0 deletions src/pages/MyPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import Navbar from 'components/Navbar/ Navbar';

function MyPage() {
return (
<div className="flex flex-col justify-center w-full">
<Navbar />
</div>
);
}

export default MyPage;
4 changes: 3 additions & 1 deletion src/shared/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import { GoogleOAuthProvider } from '@react-oauth/google';
import MainPage from 'pages/MainPage';
import PostListPage from 'pages/PostListPage';
import PostDetail from 'components/post/PostDetail';
import KakaoAuth from 'components/login/KakaoAuth';
import KakaoAuth from 'components/Login/KakaoAuth';

import AddPost from 'components/post/AddPost';

import GatheringRoute from './sub/GatheringRoute';
import MyPage from 'pages/MyPage';

const Router = () => {
return (
Expand All @@ -21,6 +22,7 @@ const Router = () => {
<Route path="/postdetail/:id" element={<PostDetail />} />
<Route path="/addpost" element={<AddPost />} />
<Route path="/kauth" element={<KakaoAuth />} />
<Route path="/mypage" element={<MyPage />} />
</Routes>
</GoogleOAuthProvider>
</BrowserRouter>
Expand Down

0 comments on commit 9ab0134

Please sign in to comment.