diff --git a/src/components/FullScreenDropZone.tsx b/src/components/FullScreenDropZone.tsx index 529068d96..cf71c36fc 100644 --- a/src/components/FullScreenDropZone.tsx +++ b/src/components/FullScreenDropZone.tsx @@ -9,13 +9,11 @@ const DropDiv = styled.div` type Props = React.PropsWithChildren<{ showModal: () => void; - closeModal: () => void; }>; export default function FullScreenDropZone({ children, showModal, - closeModal, }: Props) { const closeTimer = useRef(); @@ -31,14 +29,8 @@ export default function FullScreenDropZone({ showModal(); }; - const onDragLeave = (e) => { - e.preventDefault(); - clearTimer(); - closeTimer.current = global.setTimeout(closeModal, 1000); - }; - return ( - + {children} ); diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 1ba378ad5..1fc474c84 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -190,7 +190,6 @@ export default function App({ Component, pageProps }) { return ( diff --git a/src/pages/gallery/components/CollectionDropZone.tsx b/src/pages/gallery/components/CollectionDropZone.tsx index 8876c450e..e7fc6ca23 100644 --- a/src/pages/gallery/components/CollectionDropZone.tsx +++ b/src/pages/gallery/components/CollectionDropZone.tsx @@ -6,7 +6,6 @@ import DropzoneWrapper from './DropzoneWrapper'; function CollectionDropZone({ children, closeModal, - showModal, refetchData, collectionAndItsLatestFile, setProgressView, @@ -39,7 +38,6 @@ function CollectionDropZone({ );