diff --git a/frontend/src/@types/roomInfo.ts b/frontend/src/@types/roomInfo.ts index a3c1b77e..e947b5cb 100644 --- a/frontend/src/@types/roomInfo.ts +++ b/frontend/src/@types/roomInfo.ts @@ -2,7 +2,11 @@ export type Classification = "ALL" | "FRONTEND" | "BACKEND" | "ANDROID"; export type RoomStatus = "OPEN" | "CLOSE" | "PROGRESS" | "FAIL"; -export type ParticipationStatus = "NOT_PARTICIPATED" | "PARTICIPATED" | "MANAGER"; +export type ParticipationStatus = + | "NOT_PARTICIPATED" + | "PARTICIPATED" + | "MANAGER" + | "PULL_REQUEST_NOT_SUBMITTED"; export type Role = "BOTH" | "REVIEWER" | "REVIEWEE" | "NONE"; diff --git a/frontend/src/components/roomDetailPage/myReviewee/MyReviewee.tsx b/frontend/src/components/roomDetailPage/myReviewee/MyReviewee.tsx index caa2876d..2226f12f 100644 --- a/frontend/src/components/roomDetailPage/myReviewee/MyReviewee.tsx +++ b/frontend/src/components/roomDetailPage/myReviewee/MyReviewee.tsx @@ -100,7 +100,11 @@ const MyReviewee = ({ roomInfo }: MyReviewerProps) => { if (roomInfo.roomStatus === "CLOSE" && revieweeData.length === 0) { return ( -

{MESSAGES.GUIDANCE.FAIL_MATCHED}

+

+ {roomInfo.participationStatus === "PULL_REQUEST_NOT_SUBMITTED" + ? MESSAGES.GUIDANCE.PULL_REQUEST_NOT_SUBMITTED + : MESSAGES.GUIDANCE.FAIL_MATCHED} +

); } diff --git a/frontend/src/components/roomDetailPage/myReviewer/MyReviewer.tsx b/frontend/src/components/roomDetailPage/myReviewer/MyReviewer.tsx index 1c89feeb..48c57d64 100644 --- a/frontend/src/components/roomDetailPage/myReviewer/MyReviewer.tsx +++ b/frontend/src/components/roomDetailPage/myReviewer/MyReviewer.tsx @@ -88,7 +88,11 @@ const MyReviewer = ({ roomInfo }: MyReviewerProps) => { if (roomInfo.roomStatus === "CLOSE" && reviewerData.length === 0) { return ( -

{MESSAGES.GUIDANCE.FAIL_MATCHED}

+

+ {roomInfo.participationStatus === "PULL_REQUEST_NOT_SUBMITTED" + ? MESSAGES.GUIDANCE.PULL_REQUEST_NOT_SUBMITTED + : MESSAGES.GUIDANCE.FAIL_MATCHED} +

); } diff --git a/frontend/src/constants/message.ts b/frontend/src/constants/message.ts index de021d56..b08ef5c1 100644 --- a/frontend/src/constants/message.ts +++ b/frontend/src/constants/message.ts @@ -10,6 +10,7 @@ const GUIDANCE_MESSAGES = { EMPTY_PARTICIPANTS: "참여자 목록은 매칭이 시작된 이후 공개됩니다.", ZERO_PARTICIPANTS: "이 방의 참여자가 없습니다.", ONLY_REVIEWER: "리뷰어로만 참여 중입니다!", + PULL_REQUEST_NOT_SUBMITTED: "PR을 제출하지 않아 매칭되지 않았습니다.", }; const ERROR_MESSAGES = {