mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 05:54:49 +03:00
feat(Upload/DropIndicator): use new useEventListener params
This commit is contained in:
parent
abcc7375c9
commit
f91f8de959
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user