From f91f8de95995ed93a34cda8109a9c0052c003372 Mon Sep 17 00:00:00 2001 From: Aminejv Date: Wed, 27 Oct 2021 09:47:20 +0100 Subject: [PATCH] feat(Upload/DropIndicator): use new useEventListener params --- components/core/Upload/DropIndicator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/core/Upload/DropIndicator.js b/components/core/Upload/DropIndicator.js index 51c69f9a..2dcd778f 100644 --- a/components/core/Upload/DropIndicator.js +++ b/components/core/Upload/DropIndicator.js @@ -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 (