From 277963f97a99747be7cdf08e2bc1f6190ec65927 Mon Sep 17 00:00:00 2001 From: Thomas Makin Date: Thu, 14 Nov 2024 15:26:39 -0500 Subject: [PATCH] CourseCard: minor fixes --- components/CourseCard.tsx | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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}