remove old library

This commit is contained in:
daniel31x13
2024-03-05 09:23:55 -05:00
parent 8c76b0d141
commit 01b3b4485e
3 changed files with 5 additions and 46 deletions
-19
View File
@@ -1,19 +0,0 @@
// StrictModeDroppable.tsx
import { useEffect, useState } from "react";
import { Droppable, DroppableProps } from "react-beautiful-dnd";
export const StrictModeDroppable = ({ children, ...props }: DroppableProps) => {
const [enabled, setEnabled] = useState(false);
useEffect(() => {
const animation = requestAnimationFrame(() => setEnabled(true));
return () => {
cancelAnimationFrame(animation);
setEnabled(false);
};
}, []);
if (!enabled) {
return null;
}
return <Droppable {...props}>{children}</Droppable>;
};