diff --git a/packages/frontend/components/AddCourseModal/AddCourseModal.tsx b/packages/frontend/components/AddCourseModal/AddCourseModal.tsx index 7d9edc399..ef7b6cf13 100644 --- a/packages/frontend/components/AddCourseModal/AddCourseModal.tsx +++ b/packages/frontend/components/AddCourseModal/AddCourseModal.tsx @@ -28,10 +28,12 @@ import { NUPathCheckBox } from "./NUPathCheckBox"; import { SearchCoursesInput } from "./SearchCoursesInput"; import { SearchResult } from "./SearchResult"; import { SelectedCourse } from "./SelectedCourse"; +import { SecondaryButton } from "../Button"; interface AddCourseModalProps { isOpen: boolean; catalogYear?: number; + addTo: string; /** Function to close the modal UX, returned from the useDisclosure chakra hook */ closeModalDisplay: () => void; @@ -48,6 +50,7 @@ interface AddCourseModalProps { export const AddCourseModal: React.FC = ({ isOpen, catalogYear, + addTo, closeModalDisplay, isCourseAlreadyAdded, addSelectedClasses, @@ -119,18 +122,24 @@ export const AddCourseModal: React.FC = ({ }; return ( - + - + Add Courses + + Select courses to add to{" "} + + {addTo} + + @@ -139,12 +148,12 @@ export const AddCourseModal: React.FC = ({ - + NUPath @@ -163,8 +172,9 @@ export const AddCourseModal: React.FC = ({ = ({ direction="column" height="300px" overflow="scroll" - marginTop="4" + marginTop="sm" > {/* No course search */} {!error && (!courses || courses.length === 0) && ( - - Search results will show up here. + + Search results will show up here... )} @@ -227,12 +241,12 @@ export const AddCourseModal: React.FC = ({ {/* Selected Courses Area */} - + Courses to Add: = ({ - + Cancel