diff --git a/src/components/MyPlans/Cards/PlanCard.tsx b/src/components/MyPlans/Cards/PlanCard.tsx
index ab02e304..06b1d5a0 100644
--- a/src/components/MyPlans/Cards/PlanCard.tsx
+++ b/src/components/MyPlans/Cards/PlanCard.tsx
@@ -23,7 +23,7 @@ export default function PlanCard({ planDetail }: PlanData) {
-
diff --git a/src/components/MyPlans/MyPlanList.tsx b/src/components/MyPlans/MyPlanList.tsx
index cb0e61c0..0dbbe5be 100644
--- a/src/components/MyPlans/MyPlanList.tsx
+++ b/src/components/MyPlans/MyPlanList.tsx
@@ -55,8 +55,8 @@ const MyPlanList = forwardRef(
return (
-
{`${title} 플랜 목록`}
-
+
{`${title} 플랜 목록`}
+
{isLoading ? (
@@ -66,24 +66,28 @@ const MyPlanList = forwardRef
(
{visiblePlans.map((plan) => (
{plan.title}
-
- {convertRegionToKorean(plan.serviceArea)}
-
ㅣ
- {formatToSimpleDate(plan.tripDate)}
-
ㅣ
-
+
+
+
{convertRegionToKorean(plan.serviceArea)}
+
ㅣ
+
{formatToSimpleDate(plan.tripDate)}
+
+
ㅣ
+
+
+
- 작성일 {reviewDetail.createdAt}
+ 작성일 {formatToSimpleDate(reviewDetail.createdAt)}
diff --git a/src/pages/myreview-manage/completed-trip/index.tsx b/src/pages/myreview-manage/completed-trip/index.tsx
index f865ab09..b926323c 100644
--- a/src/pages/myreview-manage/completed-trip/index.tsx
+++ b/src/pages/myreview-manage/completed-trip/index.tsx
@@ -72,4 +72,4 @@ export function CompletedTrip() {
);
}
-export default withAuthAccess(CompletedTrip);
+export default withAuthAccess(CompletedTrip, "DREAMER");
diff --git a/src/pages/myreview-manage/reviewable-trip/index.tsx b/src/pages/myreview-manage/reviewable-trip/index.tsx
index 87b37a56..d37b1ff1 100644
--- a/src/pages/myreview-manage/reviewable-trip/index.tsx
+++ b/src/pages/myreview-manage/reviewable-trip/index.tsx
@@ -76,4 +76,4 @@ export function ReviewableTrip() {
);
}
-export default withAuthAccess(ReviewableTrip);
+export default withAuthAccess(ReviewableTrip, "DREAMER");
diff --git a/src/pages/myreview-manage/reviewed-trip/index.tsx b/src/pages/myreview-manage/reviewed-trip/index.tsx
index 359f8a0f..6e08654a 100644
--- a/src/pages/myreview-manage/reviewed-trip/index.tsx
+++ b/src/pages/myreview-manage/reviewed-trip/index.tsx
@@ -76,4 +76,4 @@ export function ReviewedTrip() {
);
}
-export default withAuthAccess(ReviewedTrip);
+export default withAuthAccess(ReviewedTrip, "DREAMER");
diff --git a/src/pages/mytrip-manage/completed-plan/detail/[id].tsx b/src/pages/mytrip-manage/completed-plan/detail/[id].tsx
index 0e6497b3..1cd0117d 100644
--- a/src/pages/mytrip-manage/completed-plan/detail/[id].tsx
+++ b/src/pages/mytrip-manage/completed-plan/detail/[id].tsx
@@ -31,4 +31,4 @@ export function CompletedPlanDetail() {
);
}
-export default withAuthAccess(CompletedPlanDetail);
+export default withAuthAccess(CompletedPlanDetail, "DREAMER");
diff --git a/src/pages/mytrip-manage/completed-plan/index.tsx b/src/pages/mytrip-manage/completed-plan/index.tsx
index 4c8a51ec..d87dce90 100644
--- a/src/pages/mytrip-manage/completed-plan/index.tsx
+++ b/src/pages/mytrip-manage/completed-plan/index.tsx
@@ -47,7 +47,7 @@ export function CompletedPlan() {
0 ? `?${params.join("&")}` : "";
@@ -103,7 +104,11 @@ const planService = {
try {
const response = await api.get(`/plans/${planId}`);
return response;
- } catch (error) {
+ } catch (error: any) {
+ if (error.response && error.response.status === 404) {
+ window.location.href = "/404";
+ return Promise.reject(new Error("해당 여행 플랜을 찾을 수 없습니다."));
+ }
console.error("여행 데이터 요청 실패", error);
throw error;
}
diff --git a/test.http b/test.http
index b4c28823..ab0a3b10 100644
--- a/test.http
+++ b/test.http
@@ -89,7 +89,7 @@ Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2Njg4N
### 완료 가능 플랜 불러오기(dreamer)
GET https://www.goforme.duckdns.org/plans/dreamer?readyToComplete=true&page=1&pageSize=6
-Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2Njg4NWEzYy01MGY0LTQyN2ItOGE5Mi0zNzAyYzY5NzZmYjAiLCJyb2xlIjoiRFJFQU1FUiIsImlhdCI6MTczOTgwMDQxNSwiZXhwIjoxNzM5ODg2ODE1fQ.VKDq_T-dg2NK6xRC_2GeSNLXBLGD2SyIzbaAXWmfrfc
+Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2Njg4NWEzYy01MGY0LTQyN2ItOGE5Mi0zNzAyYzY5NzZmYjAiLCJyb2xlIjoiRFJFQU1FUiIsImlhdCI6MTczOTk1NDMxNSwiZXhwIjoxNzQwMDQwNzE1fQ.OBkKC2CqmSdntE_hmVbmEWkeF2_mgmtP7GNKemv95Do
### 리뷰가능한 플랜 목록 조회(dreamer)