diff --git a/src/routes/PrivateRoute.tsx b/src/routes/RequireAuthRoute.tsx
similarity index 95%
rename from src/routes/PrivateRoute.tsx
rename to src/routes/RequireAuthRoute.tsx
index 618149a..d6f42d6 100644
--- a/src/routes/PrivateRoute.tsx
+++ b/src/routes/RequireAuthRoute.tsx
@@ -10,7 +10,7 @@ type Props = {
* @description 로그인이 필요한 페이지를 래핑하는 컴포넌트.
* 로그인 여부 확인 후, 로그인했다면 래핑한 페이지를 렌더하고 로그인하지 않았다면 로그인 페이지로 리다이렉트함
*/
-export const PrivateRoute = ({ children }: Props) => {
+export const RequireAuthRoute = ({ children }: Props) => {
const { pathname, state } = useLocation();
const { isAuthenticated } = useAuth();
const isAccessAllowed = state === 'allow'; // NOTE: accessToken이 없어도 예외적으로 접근을 허용할 때 사용 (e.g. 비회원으로 일정 입력하기)
diff --git a/src/routes/route.tsx b/src/routes/route.tsx
index 85a1346..99094d4 100644
--- a/src/routes/route.tsx
+++ b/src/routes/route.tsx
@@ -16,7 +16,7 @@ import { PinRelease } from '@/pages/PinRelease';
import { TimeCollection } from '@/pages/TimeCollection';
import { TotalSchedule } from '@/pages/TotalSchedule';
-import { PrivateRoute } from './PrivateRoute';
+import { RequireAuthRoute } from './RequireAuthRoute';
export const router = createBrowserRouter([
{
@@ -42,17 +42,17 @@ export const router = createBrowserRouter([
index: true,
// loader: meetingLoader, FIXME: 로그인하지 않은 경우 권한을 필요로하는 로더 동작 불가능하므로 제거하기
element: (
-
+
-
+
),
},
{
path: 'new',
element: (
-
+
-
+
),
},
{
@@ -72,9 +72,9 @@ export const router = createBrowserRouter([
{
path: 'new',
element: (
-
+
-
+
),
},
{