cursor pagination

This commit is contained in:
hamid zarghami
2026-07-14 14:52:40 +03:30
parent 1d92a954d0
commit a8830ea70d
10 changed files with 294 additions and 99 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import type { Task as TaskType } from "../types";
type Props = {
task: TaskType;
isDragging?: boolean;
onDragStart: (taskId: string) => void;
onDragStart: (task: TaskType) => void;
onDragEnd: () => void;
onClick?: (task: TaskType) => void;
};
@@ -23,7 +23,7 @@ const Task: FC<Props> = ({ task, isDragging, onDragStart, onDragEnd, onClick })
draggable
onDragStart={() => {
hasDraggedRef.current = true;
onDragStart(task.id);
onDragStart(task);
}}
onDragEnd={() => {
onDragEnd();