diff --git a/src/pages/gallery/components/CollectionDropZone.tsx b/src/pages/gallery/components/CollectionDropZone.tsx index 7993f79b4a3befe5d6c68c16eedd2e3fc99dd301..868221d86f62ce00eea7f5816e248715a51b27b6 100644 --- a/src/pages/gallery/components/CollectionDropZone.tsx +++ b/src/pages/gallery/components/CollectionDropZone.tsx @@ -31,7 +31,7 @@ export const DropDiv = styled.div` transition: border 0.24s ease-in-out; `; -const CollectionDropZone = ({ +function CollectionDropZone({ children, closeModal, setData, @@ -43,7 +43,7 @@ const CollectionDropZone = ({ encryptionKey, progressBarProps -}) => { +}) { const upload = async (acceptedFiles) => { closeModal(); diff --git a/src/pages/gallery/components/UploadButton.tsx b/src/pages/gallery/components/UploadButton.tsx index 84bb6544c254a42ea21a6c3de5a5932168f6e7d3..26b011b1e7f60625ad9ed42fef04a08103825101 100644 --- a/src/pages/gallery/components/UploadButton.tsx +++ b/src/pages/gallery/components/UploadButton.tsx @@ -2,7 +2,7 @@ import CollectionSelector from 'pages/gallery/components/CollectionSelector'; import React, { useRef } from 'react'; import { Button } from 'react-bootstrap'; -const UploadButton = ({ showModal }) => { +function UploadButton({ showModal }) { return (