Skip to content

Commit

Permalink
refactor: 피드백 작성하지 않았을 때 문구 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chlwlstlf committed Oct 12, 2024
1 parent e78e7a8 commit b666062
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const MyReviewee = ({ roomInfo }: MyReviewerProps) => {
return <p>코드리뷰를 하지 않았어요</p>;
}

if (roomInfo.roomStatus === "CLOSE" && !reviewee.isWrited) {
return <p>피드백을 작성하지 않았어요</p>;
}

return reviewee.isReviewed ? (
<Button
size="xSmall"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ const MyReviewer = ({ roomInfo }: MyReviewerProps) => {
return <p>리뷰어가 리뷰를 안 했어요</p>;
}

if (roomInfo.roomStatus === "CLOSE" && !reviewer.isWrited) {
return <p>피드백을 작성하지 않았어요</p>;
}

return reviewer.isReviewed ? (
<Button
size="xSmall"
Expand Down

0 comments on commit b666062

Please sign in to comment.