diff --git a/components/CourseCard.tsx b/components/CourseCard.tsx index 0e31c7a..46d1c84 100644 --- a/components/CourseCard.tsx +++ b/components/CourseCard.tsx @@ -1,5 +1,5 @@ "use client"; -import { Card, CardBody, CardHeader, Chip } from "@nextui-org/react"; +import { Card, CardBody, CardHeader, Chip, Divider } from "@nextui-org/react"; import Image from "next/image"; import { tv } from "tailwind-variants"; import axios from "axios"; @@ -69,7 +69,7 @@ export default function CourseCard(props: any) { if (item) { return ( -

{item.code}

+ {" " + item.code + " "}
); } @@ -94,9 +94,11 @@ export default function CourseCard(props: any) { {props.course.subject} {props.course.courseNumber} |{" "} {props.course.creditHours} credit(s) {props.course.sectionAttributes.length > 0 && ( -
-  | {attributeCodes} -
+ <> +
+  | {attributeCodes} +
+ )} @@ -165,11 +167,11 @@ export default function CourseCard(props: any) {
{coloredDays}
-
+
-
Instructor
-
+
Instructor
+
{props.course.instructor.displayName.replace("'", "'")}
@@ -184,7 +186,7 @@ export default function CourseCard(props: any) {
{props.course.seatsAvailable == 0 ? (
-
+
No available seats left for this section
{/* Use shorter msg for mobile */} @@ -195,7 +197,7 @@ export default function CourseCard(props: any) {
) : (
-
+
Seats Available: {props.course.seatsAvailable}