Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] 소셜 피드백 작성 페이지 이동 오류(#709) #710

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const FeedbackCard = ({
return feedbackType === "develop" ? "TO. 나의 리뷰이" : "TO. 나의 리뷰어";
};

const reviewer: ReviewerInfo = {
const revieweInfo: 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: { reviewer },
state: { revieweInfo },
},
);
};
Expand All @@ -56,7 +56,7 @@ const FeedbackCard = ({
<S.ButtonWrapper>
<p>상대방 피드백을 작성해야 볼 수 있습니다.</p>
<Button
variant={feedbackType ? "primary" : "secondary"}
variant={feedbackType === "develop" ? "primary" : "secondary"}
onClick={handleNavigateFeedbackPage}
>
피드백 작성하러가기
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?.reviewee as ReviewerInfo;
const reviewee = location.state?.revieweInfo 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?.reviewer as ReviewerInfo;
const reviewer = location.state?.revieweInfo as ReviewerInfo;

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