11import React , { useEffect , useRef } from 'react'
2- import React , { useEffect , useRef } from 'react'
32
43function CoursePagePopup ( { favouriteCourses, addFavourite,
54 removeFavourite, isOpen, onClose, course, prerequisiteTree } ) {
@@ -42,7 +41,6 @@ function CoursePagePopup({ favouriteCourses, addFavourite,
4241 onClick = { onClose }
4342 >
4443 < div
45- className = "bg-indigo-300/75 backdrop-blur-lg h-full w-3/4 flex flex-col overflow-auto"
4644 className = "bg-indigo-300/75 backdrop-blur-lg h-full w-3/4 flex flex-col overflow-auto"
4745 onClick = { ( e ) => e . stopPropagation ( ) }
4846 >
@@ -57,14 +55,13 @@ function CoursePagePopup({ favouriteCourses, addFavourite,
5755 </ span >
5856 </ h2 >
5957 < div className = "my-6 h-1.5 w-full bg-violet-500" > </ div >
60- < div className = "my-6 h-1.5 w-full bg-violet-500" > </ div >
6158 </ div >
6259 < div >
6360 < button
6461 className = "text-yellow-500 bg-yellow-400 cursor-pointer"
6562 onClick = { ( e ) => {
6663 e . stopPropagation ( ) ; // prevent popup from opening
67- PaymentResponse . handleFavouriteClick ( course . code ) ;
64+ handleFavouriteClick ( course . code ) ;
6865 } }
6966 >
7067 { favouriteCourses . includes ( course . code )
@@ -75,12 +72,9 @@ function CoursePagePopup({ favouriteCourses, addFavourite,
7572
7673 { /* Description Section */ }
7774 < div >
78- < h3 className = "text-2xl font-bold text-[#2e2e4f] mb-0.5" > Course Description</ h3 >
79- < div className = "mb-3 h-0.5 w-full bg-violet-500" > </ div >
8075 < h3 className = "text-2xl font-bold text-[#2e2e4f] mb-0.5" > Course Description</ h3 >
8176 < div className = "mb-3 h-0.5 w-full bg-violet-500" > </ div >
8277 < div
83- className = "text-lg leading-8 text-[#2e2e4f] font-semibold tracking-wide prose prose-slate max-w-full"
8478 className = "text-lg leading-8 text-[#2e2e4f] font-semibold tracking-wide prose prose-slate max-w-full"
8579 dangerouslySetInnerHTML = { { __html : course . description } }
8680 />
@@ -105,8 +99,6 @@ function CoursePagePopup({ favouriteCourses, addFavourite,
10599 </ div >
106100 { /* Reviews Section */ }
107101 < div >
108- < h3 className = "text-2xl font-semibold text-[#2e2e4f] mb-0.5" > Reviews</ h3 >
109- < div className = "mb-4 h-0.5 w-full bg-violet-500" > </ div >
110102 < h3 className = "text-2xl font-semibold text-[#2e2e4f] mb-0.5" > Reviews</ h3 >
111103 < div className = "mb-4 h-0.5 w-full bg-violet-500" > </ div >
112104 < p className = "text-lg text-slate-700 leading-7" > Here would be some reviews of the course...</ p >
0 commit comments