Fix the ref, upload, keyframes, and implicit-any type errors. [skip build]
Checks / checks (push) Successful in 2m6s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-02 00:51:31 +11:00
parent 45f38f2ac8
commit 1e3d630b1a
30 changed files with 134 additions and 98 deletions
+3 -3
View File
@@ -20,9 +20,9 @@ export type CanDropCallback = (item: HierarchyItem, container: DropContainerData
export const useDraggableItem = (
item: HierarchyItem,
targetRef: RefObject<HTMLElement>,
targetRef: RefObject<HTMLElement | null>,
onDragging: (item?: HierarchyItem) => void,
dragHandleRef?: RefObject<HTMLElement>,
dragHandleRef?: RefObject<HTMLElement | null>,
): boolean => {
const [dragging, setDragging] = useState(false);
@@ -120,7 +120,7 @@ export function AfterItemDropTarget({
}
export const useDnDMonitor = (
scrollRef: RefObject<HTMLElement>,
scrollRef: RefObject<HTMLElement | null>,
onDragging: (item?: HierarchyItem) => void,
onReorder: (item: HierarchyItem, container: DropContainerData) => void,
) => {