Skip to content

Commit

Permalink
Remove transfer course cursor styling (#669)
Browse files Browse the repository at this point in the history
* add design change

* remove unused prop
  • Loading branch information
BrandonLim8890 authored Nov 19, 2023
1 parent 74a0340 commit 96fe9fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const NonDraggableScheduleCourse: React.FC<
isDisabled={false}
isEditable={true}
removeCourse={removeCourse}
isDraggable={false}
/>
);
};
Expand Down Expand Up @@ -218,7 +219,7 @@ const ScheduleCourse = forwardRef<HTMLElement | null, ScheduleCourseProps>(
flex: scheduleCourse.classId === COOP_BLOCK.classId ? 1 : 0,
marginBottom: "6px",
transition: "transform 0.15s ease, opacity 0.25s ease",
transform: hovered ? "scale(1.04)" : "scale(1)",
transform: hovered && isDraggable ? "scale(1.04)" : "scale(1)",
opacity: isValidRemove ? 0.5 : 1,
justifyContent: "space-between",
width: "100%",
Expand Down Expand Up @@ -321,7 +322,7 @@ const ScheduleCourseDraggedContents: React.FC<
<div
style={{
padding: isDraggable ? "8px 8px" : "8px 12px",
cursor: isOverlay ? "grabbing" : "grab",
cursor: isOverlay ? "grabbing" : isDraggable ? "grab" : "default",
flexGrow: "1",
}}
{...listeners}
Expand Down

0 comments on commit 96fe9fb

Please sign in to comment.