Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Nov 7, 2024
2 parents 9af3f51 + 864ad1c commit 1c0de6d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const FeedbackCard = ({
return feedbackType === "develop" ? "TO. 나의 리뷰이" : "TO. 나의 리뷰어";
};

const revieweInfo: ReviewerInfo = {
const reviewInfo: ReviewerInfo = {
userId: feedbackCardData.receiverId,
username: feedbackCardData.username,
link: feedbackCardData.profile,
Expand All @@ -41,7 +41,7 @@ const FeedbackCard = ({
navigate(
`/rooms/${feedbackCardData.roomId}/feedback/${feedbackType === "develop" ? "reviewer" : "reviewee"}?username=${feedbackCardData.username}`,
{
state: { revieweInfo },
state: { reviewInfo },
},
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const MyReviewee = ({ roomInfo }: MyRevieweeProps) => {
const [loadingButtonId, setLoadingButtonId] = useState<number[]>([]);

// 피드백 페이지 이동 함수
const handleNavigateFeedbackPage = (reviewee: ReviewerInfo) => {
navigate(`/rooms/${roomInfo.id}/feedback/reviewee?username=${reviewee.username}`, {
state: { reviewee },
const handleNavigateFeedbackPage = (reviewInfo: ReviewerInfo) => {
navigate(`/rooms/${roomInfo.id}/feedback/reviewee?username=${reviewInfo.username}`, {
state: { reviewInfo },
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const MyReviewer = ({ roomInfo }: MyReviewerProps) => {
const { data: reviewerData } = useFetchReviewer(roomInfo);

// 피드백 페이지 이동 함수
const handleNavigateFeedbackPage = (reviewer: ReviewerInfo) => {
navigate(`/rooms/${roomInfo.id}/feedback/reviewer?username=${reviewer.username}`, {
state: { reviewer },
const handleNavigateFeedbackPage = (reviewInfo: ReviewerInfo) => {
navigate(`/rooms/${roomInfo.id}/feedback/reviewer?username=${reviewInfo.username}`, {
state: { reviewInfo },
});
};

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/feedbackForm/RevieweeFeedbackPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const RevieweeFeedbackPage = () => {

const roomId = Number(useParams().roomId);
const username = queryParams.get("username") || "";
const reviewee = location.state?.revieweInfo as ReviewerInfo;
const reviewee = location.state?.reviewInfo as ReviewerInfo;

const { data: roomInfo } = useFetchDetailRoomInfo(roomId);
const { data: feedbackData } = useFetchRevieweeFeedback({
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/feedbackForm/ReviewerFeedbackPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ReviewerFeedbackPage = () => {

const roomId = Number(useParams().roomId);
const username = queryParams.get("username") || "";
const reviewer = location.state?.revieweInfo as ReviewerInfo;
const reviewer = location.state?.reviewInfo as ReviewerInfo;

const { data: roomInfo } = useFetchDetailRoomInfo(roomId);
const { data: feedbackData } = useFetchReviewerFeedback({
Expand Down

0 comments on commit 1c0de6d

Please sign in to comment.