From de9fa619baac1603cb9d23aedfc99b2f3302bbc5 Mon Sep 17 00:00:00 2001 From: Caden Lee Date: Fri, 10 Jan 2025 22:25:15 -0800 Subject: [PATCH] fix: course popover props interface --- site/src/component/CoursePopover/CoursePopover.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/site/src/component/CoursePopover/CoursePopover.tsx b/site/src/component/CoursePopover/CoursePopover.tsx index 76f076ab..2819ae35 100644 --- a/site/src/component/CoursePopover/CoursePopover.tsx +++ b/site/src/component/CoursePopover/CoursePopover.tsx @@ -3,11 +3,16 @@ import './CoursePopover.scss'; import { ExclamationTriangle } from 'react-bootstrap-icons'; import Popover from 'react-bootstrap/Popover'; -import { CourseGQLData } from '../../types/types'; - -interface CoursePopoverProps extends CourseGQLData { +interface CoursePopoverProps { + department: string; + courseNumber: string; + title: string; + minUnits: number; + maxUnits: number; + description: string; + prerequisiteText: string; + corequisites: string; requiredCourses?: string[]; - openPopoverLeft?: boolean; } const CoursePopover: FC = (props) => {