Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shanexi committed Sep 20, 2024
1 parent 79115f4 commit 516a028
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ const TaskItem = ({
const hoverMiddleY =
(hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;
const clientOffset = monitor.getClientOffset() || { x: 0, y: 0 };
// eslint-disable-next-line no-unsafe-optional-chaining
const hoverClientY = clientOffset?.y - hoverBoundingRect.top;

if (
Expand Down Expand Up @@ -252,8 +253,7 @@ const TaskItem = ({
{draggable && (
<div
ref={dragRef}
className="w-6 h-6 flex items-center justify-center cursor-grab"
role="Handle">
className="w-6 h-6 flex items-center justify-center cursor-grab">
<Drag size="md" color="subtle" />
</div>
)}
Expand Down

0 comments on commit 516a028

Please sign in to comment.