refactor: straightened logic, replaces throttle with mantine debounced

This commit is contained in:
2025-08-05 17:47:39 +04:00
parent c13cc4a0a5
commit abbf782945
7 changed files with 37 additions and 68 deletions

View File

@ -10,7 +10,7 @@ import { Group, ScrollArea } from "@mantine/core";
import DndOverlay from "@/app/deals/components/DndOverlay/DndOverlay";
import StatusColumn from "@/app/deals/components/StatusColumn/StatusColumn";
import { useStatusesContext } from "@/app/deals/contexts/StatusesContext";
import useDnd from "@/app/deals/hooks/useDnd";
import useDealsAndStatusesDnd from "@/app/deals/hooks/useDealsAndStatusesDnd";
import { SortableItem } from "@/components/SortableDnd/SortableItem";
import useDndSensors from "../../hooks/useSensors";
@ -33,7 +33,7 @@ const StatusColumnsDnd: FC<Props> = props => {
handleDragEnd,
activeStatus,
activeDeal,
} = useDnd(props);
} = useDealsAndStatusesDnd(props);
const sensors = useDndSensors();