Skip to content

Commit

Permalink
Merge pull request #717 from UTDNebula/move-warning-top
Browse files Browse the repository at this point in the history
NP-299 feat: prioritize order courses with warning
  • Loading branch information
kamui-fin authored Oct 20, 2023
2 parents 31d0bdb + c7261cd commit 87bebfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/planner/Tiles/SemesterCourseItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]'}`}
} ${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);
Expand Down

0 comments on commit 87bebfc

Please sign in to comment.