diff --git a/components/drag-and-drop/index.tsx b/components/drag-and-drop/index.tsx index 646bc522..90aad9f4 100644 --- a/components/drag-and-drop/index.tsx +++ b/components/drag-and-drop/index.tsx @@ -182,6 +182,7 @@ const DragAndDrop = ({ onFile, onGenerate, onError }: DragAndDropProps) => { onDrop, accept: Object.keys(ACCEPT_MIME_TYPES), maxSize: ONE_MB, + multiple: false, }) const onCopy = () => { diff --git a/package.json b/package.json index f50ed636..57537636 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "react": "16.13.1", "react-clipboard.js": "2.0.16", "react-dom": "16.13.1", - "react-dropzone": "11.0.3", + "react-dropzone": "11.1.0", "react-lazy-images": "1.1.0", "react-modal": "3.11.2", "react-transition-group": "4.4.1", diff --git a/yarn.lock b/yarn.lock index 8d8b094c..9a89865e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13644,10 +13644,10 @@ react-draggable@^4.0.3: classnames "^2.2.5" prop-types "^15.6.0" -react-dropzone@11.0.3: - version "11.0.3" - resolved "https://registry.yarnpkg.com/react-dropzone/-/react-dropzone-11.0.3.tgz#59c396a1482454fa78466f8565336f40ce7f7c84" - integrity sha512-+MoMOoKZfkZ9i1+qEFl2ZU29AB/c9K2bFxyACqGynguJunmqO+k2PJ2AcuiH51xVNl9R7q/x5QdBaIWb6RtoSw== +react-dropzone@11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/react-dropzone/-/react-dropzone-11.1.0.tgz#c225f3c53450c80fbd80954361dc039090bfc14c" + integrity sha512-gJT6iJadyTbevrigm6KZFaei/yNWfokzs1idumO7fXtRNPiGFDUpsQ+trHWwUO3yWOtJibpbo5tLZggjm+KV5w== dependencies: attr-accept "^2.0.0" file-selector "^0.1.12"