diff --git a/frontend/components/CourseEvaluation/Reviews/ReviewCard.tsx b/frontend/components/CourseEvaluation/Reviews/ReviewCard.tsx index 4d6fb5c..ed53a4a 100644 --- a/frontend/components/CourseEvaluation/Reviews/ReviewCard.tsx +++ b/frontend/components/CourseEvaluation/Reviews/ReviewCard.tsx @@ -13,6 +13,7 @@ import { userDisplayName } from '@/components/utils/generic'; import ReviewProgress from '@/components/Reviewer/ReviewProgress'; import AreYouSureModalButton from '@/components/utils/AreYouSureModalButton'; import useAuthenticatedAPIClient from '@/components/hooks/useAuthenticatedAPIClient'; +import { useRouter } from 'next/router'; type Props = { review: ReviewListEntry; @@ -23,6 +24,7 @@ const ReviewCard = (props: Props) => { const axios = useAuthenticatedAPIClient(); const { mutate } = useSWRConfig(); + const router = useRouter(); const handleDelete = async () => { try { @@ -43,8 +45,16 @@ const ReviewCard = (props: Props) => { {userDisplayName(review.reviewer)} - {/* TODO: #19 (part 1) */} - { + const { courseReview } = useCourseReview(false); + const { courseEvaluation } = useCourseEvaluation(); + const router = useRouter(); + + const allSteps = getReviewStepsWithState(courseReview); + + return ( + + + + + + Below is the summary of what the reviewer has put in. + + + + + + ); +}; + +export default Summary;