converted component to normal functions
This commit is contained in:
parent
dfc8c88947
commit
63b26baa01
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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 (
|
||||
<Button variant='primary' onClick={showModal}>
|
||||
Upload New Photos
|
||||
|
|
Loading…
Add table
Reference in a new issue