@@ -4,7 +4,7 @@ import { Review, Reviews, TabsType } from "@/types/api";
44import Dropdown from "../Dropdown/Dropdown" ;
55import { Dispatch , SetStateAction , useEffect , useState } from "react" ;
66import Rating from "../Rating/Rating" ;
7- import { BookmarkIcon } from "@heroicons/react/24/solid" ;
7+ import { BookmarkIcon , LinkIcon } from "@heroicons/react/24/solid" ;
88import ToggleSwitch from "../ToggleSwitch/ToggleSwitch" ;
99import Pagination from "../Pagination/Pagination" ;
1010import { validatedReq } from "@/utils/request" ;
@@ -130,7 +130,14 @@ export default function UserBookmarkedReviews({
130130 >
131131 < div className = 'flex w-1/2 sm:w-full sm:flex-col sm:items-start items-center gap-2' >
132132 { /* Title */ }
133- < h1 className = 'font-bold text-xl' > { review . courseCode } </ h1 >
133+ < a
134+ href = { `/course/${ review . courseCode } ` }
135+ className = 'flex items-center gap-2 font-bold hover:text-unilectives-blue/75 duration-150'
136+ >
137+ < LinkIcon className = 'w-5 h-5' />
138+ < span className = 'truncate' > { review . courseCode } </ span >
139+ </ a >
140+
134141 { /* Description */ }
135142 < p className = 'text-unilectives-headings dark:text-gray-100 w-full truncate' >
136143 { ! review . description ? "-" : review . description }
@@ -161,9 +168,15 @@ export default function UserBookmarkedReviews({
161168 >
162169 { /* Course courseCode + Ratings */ }
163170 < div className = 'flex flex-wrap justify-between text-2xl' >
164- < h1 className = 'font-bold block truncate' >
165- { review . courseCode }
166- </ h1 >
171+ < a
172+ href = { `/course/${ review . courseCode } ` }
173+ className = 'font-bold hover:text-unilectives-blue/75 duration-150 truncate'
174+ >
175+ < div className = 'flex items-center gap-2' >
176+ < LinkIcon className = 'w-6 h-6' />
177+ < span className = 'block truncate' > { review . courseCode } </ span >
178+ </ div >
179+ </ a >
167180 < div className = 'text-right' >
168181 { /* StarRating */ }
169182 < div className = 'text-2xl inline' >
0 commit comments