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;