From 5e1cb8e47433dda35658b41569c7a15dde281395 Mon Sep 17 00:00:00 2001 From: Seogeurim Date: Tue, 28 Dec 2021 23:15:28 +0900 Subject: [PATCH] =?UTF-8?q?[#65]=20feat:=20=EC=84=9C=EB=B9=84=EC=8A=A4=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=ED=8E=98=EC=9D=B4=EC=A7=80=20URI=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 서비스 아이디를 param으로 받도록 수정 - 라우터 경로에 웹팩 설정 관련 오류가 있어 index.html 수정 --- public/index.html | 1 + src/App.tsx | 11 ++++++++--- src/constants/uri.ts | 1 - 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index acdc9b9..5dbd052 100644 --- a/public/index.html +++ b/public/index.html @@ -5,6 +5,7 @@ Telbby +
diff --git a/src/App.tsx b/src/App.tsx index 756d3bf..937b3c9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,9 @@ import React, { FC } from 'react'; import { Route, Switch } from 'react-router-dom'; +import { useUserStateValue } from './atoms/userState'; import ErrorBoundary from './components/common/ErrorBoundary'; +import PrivateRoute from './components/common/PrivateRoute'; import Uri from './constants/uri'; import HomePage from './pages/HomePage'; import NotFoundPage from './pages/NotFoundPage'; @@ -9,8 +11,6 @@ import ServiceEditPage from './pages/ServiceEditPage'; import ServicePage from './pages/ServicePage'; import SigninPage from './pages/SigninPage'; import SignupPage from './pages/SignupPage'; -import PrivateRoute from './components/common/PrivateRoute'; -import { useUserStateValue } from './atoms/userState'; const App: FC = () => { const user = useUserStateValue(); @@ -39,7 +39,12 @@ const App: FC = () => { component={ServicePage} isAccessible={isAuthenticated} /> - + {/* TODO: PrivateRoute로 바꾸기 */} + diff --git a/src/constants/uri.ts b/src/constants/uri.ts index 7ac3115..9284df6 100644 --- a/src/constants/uri.ts +++ b/src/constants/uri.ts @@ -3,7 +3,6 @@ enum Uri { signin = '/signin', signup = '/signup', service = '/service', - serviceEdit = '/service-edit', } export default Uri;