feat(Upload/DropIndicator): use new useEventListener params

This commit is contained in:
Aminejv 2021-10-27 09:47:20 +01:00
parent abcc7375c9
commit f91f8de959

View File

@ -66,8 +66,8 @@ export default function DropIndicator({ data }) {
setDroppingState({ totalFilesDropped: files.length || undefined, isDroppingFiles: true });
};
useEventListener("dragenter", handleDragEnter, []);
useEventListener("dragover", handleDragOver, []);
useEventListener({ type: "dragenter", handler: handleDragEnter }, []);
useEventListener({ type: "dragover", handler: handleDragOver }, []);
return (
<AnimatePresence>