converted component to normal functions

This commit is contained in:
Abhinav-grd 2021-01-20 07:17:27 +05:30
parent dfc8c88947
commit 63b26baa01
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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