From ef79a20e9e925373fe5e9ae736475010de744500 Mon Sep 17 00:00:00 2001 From: Kamui Date: Tue, 17 Oct 2023 17:58:35 -0500 Subject: [PATCH 1/2] feat: prioritize order courses with warning --- src/components/planner/Tiles/SemesterCourseItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/planner/Tiles/SemesterCourseItem.tsx b/src/components/planner/Tiles/SemesterCourseItem.tsx index d51c64ed1..f0908e231 100644 --- a/src/components/planner/Tiles/SemesterCourseItem.tsx +++ b/src/components/planner/Tiles/SemesterCourseItem.tsx @@ -79,7 +79,7 @@ export const MemoizedSemesterCourseItem = React.memo( ? 'cursor-default bg-neutral-200' : 'bg-inherit' : 'cursor-default bg-neutral-200' - } ${semesterLocked || course.locked ? 'text-neutral-400' : 'text-[#1C2A6D]'}`} + } ${semesterLocked || course.locked ? 'text-neutral-400' : 'text-[#1C2A6D]'} ${!isValid && '-order-1'}`} onClick={() => { // Don't open if user is hovering over course info if (!course.locked && !semesterLocked) setDropdownOpen(true); From c7261cdeea312bf86bb8bf550ca8c4d0ce2929d1 Mon Sep 17 00:00:00 2001 From: Kamui Date: Wed, 18 Oct 2023 13:52:04 -0500 Subject: [PATCH 2/2] chore: run prettier --- src/components/planner/Tiles/SemesterCourseItem.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/planner/Tiles/SemesterCourseItem.tsx b/src/components/planner/Tiles/SemesterCourseItem.tsx index f0908e231..dee3eb7c8 100644 --- a/src/components/planner/Tiles/SemesterCourseItem.tsx +++ b/src/components/planner/Tiles/SemesterCourseItem.tsx @@ -79,7 +79,9 @@ export const MemoizedSemesterCourseItem = React.memo( ? 'cursor-default bg-neutral-200' : 'bg-inherit' : 'cursor-default bg-neutral-200' - } ${semesterLocked || course.locked ? 'text-neutral-400' : 'text-[#1C2A6D]'} ${!isValid && '-order-1'}`} + } ${semesterLocked || course.locked ? 'text-neutral-400' : 'text-[#1C2A6D]'} ${ + !isValid && '-order-1' + }`} onClick={() => { // Don't open if user is hovering over course info if (!course.locked && !semesterLocked) setDropdownOpen(true);