Explorar o código

remove onDropReject prop

Abhinav-grd %!s(int64=4) %!d(string=hai) anos
pai
achega
da450da0f9

+ 0 - 1
src/pages/gallery/components/AddCollection.tsx

@@ -42,7 +42,6 @@ export default function AddCollection(props) {
         <div style={{ margin: '10px' }}>
         <div style={{ margin: '10px' }}>
             <DropzoneWrapper
             <DropzoneWrapper
                 onDropAccepted={createCollection}
                 onDropAccepted={createCollection}
-                onDropRejected={closeUploadModal}
                 onDragOver={showUploadModal}
                 onDragOver={showUploadModal}
                 children={children}
                 children={children}
             />
             />

+ 1 - 7
src/pages/gallery/components/CollectionDropZone.tsx

@@ -33,13 +33,7 @@ function CollectionDropZone({
             setProgressView(false);
             setProgressView(false);
         }
         }
     };
     };
-    return (
-        <DropzoneWrapper
-            children={children}
-            onDropAccepted={upload}
-            onDropRejected={closeModal}
-        />
-    );
+    return <DropzoneWrapper children={children} onDropAccepted={upload} />;
 }
 }
 
 
 export default CollectionDropZone;
 export default CollectionDropZone;