From 32cf22c1c1125ba6c5c3a57dcabe551725bba6fe Mon Sep 17 00:00:00 2001 From: Jacob Goodwin Date: Sat, 2 May 2020 19:01:59 -0700 Subject: [PATCH] Add click listener to course program --- src/components/landing/CourseProgramCard.tsx | 2 +- src/components/landing/Landing.scss | 4 ++++ src/components/landing/Landing.tsx | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/landing/CourseProgramCard.tsx b/src/components/landing/CourseProgramCard.tsx index 2a84f53c..4ac33512 100644 --- a/src/components/landing/CourseProgramCard.tsx +++ b/src/components/landing/CourseProgramCard.tsx @@ -9,7 +9,7 @@ export interface CourseProgramProps { classTimeString: string; } -const CourseProgramCard: React.FC = (props) => ( +const CourseProgramCard: React.FC> = (props) => (
diff --git a/src/components/landing/Landing.scss b/src/components/landing/Landing.scss index 121016d9..19b5722d 100644 --- a/src/components/landing/Landing.scss +++ b/src/components/landing/Landing.scss @@ -83,6 +83,10 @@ $l-breakpoint: 1200px; } .course-program-card { + li { + cursor: pointer; + } + .uk-slider { @media screen and (max-width: $m-breakpoint - 1px) { margin-left: 16px; diff --git a/src/components/landing/Landing.tsx b/src/components/landing/Landing.tsx index f0ccd724..482121c6 100644 --- a/src/components/landing/Landing.tsx +++ b/src/components/landing/Landing.tsx @@ -80,8 +80,8 @@ const Landing: React.FC = (props) => {
    {props.courses.map((course) => ( -
  • - +
  • props.onCourseSelected(course.id)}> +
  • ) )}