diff --git a/src/components/Prerequisite/index.tsx b/src/components/Prerequisite/index.tsx index b3531a5b..db86a974 100644 --- a/src/components/Prerequisite/index.tsx +++ b/src/components/Prerequisite/index.tsx @@ -1,6 +1,11 @@ -import React, { useState } from 'react'; -import { faAngleUp, faAngleDown } from '@fortawesome/free-solid-svg-icons'; +import React, { useState, useContext } from 'react'; +import { + faAngleUp, + faAngleDown, + faInfoCircle, +} from '@fortawesome/free-solid-svg-icons'; +import { ScheduleContext } from '../../contexts'; import { classes, serializePrereqs } from '../../utils/misc'; import { ActionRow } from '..'; import { Course } from '../../data/beans'; @@ -83,12 +88,22 @@ export default function Prerequisite({ } } + const [{ term }] = useContext(ScheduleContext); + return (
{content}
diff --git a/src/components/Section/index.tsx b/src/components/Section/index.tsx index f9af276a..d1afa9ff 100644 --- a/src/components/Section/index.tsx +++ b/src/components/Section/index.tsx @@ -100,6 +100,7 @@ export default function Section({ { icon: faChair, id: sectionTooltipId, + href: `https://oscar.gatech.edu/pls/bprod/bwckschd.p_disp_detail_sched?term_in=${term}&crn_in=${section.crn}`, }, { icon: faBan,