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; transition: border 0.24s ease-in-out;
`; `;
const CollectionDropZone = ({ function CollectionDropZone({
children, children,
closeModal, closeModal,
setData, setData,
@ -43,7 +43,7 @@ const CollectionDropZone = ({
encryptionKey, encryptionKey,
progressBarProps progressBarProps
}) => { }) {
const upload = async (acceptedFiles) => { const upload = async (acceptedFiles) => {
closeModal(); closeModal();

View file

@ -2,7 +2,7 @@ import CollectionSelector from 'pages/gallery/components/CollectionSelector';
import React, { useRef } from 'react'; import React, { useRef } from 'react';
import { Button } from 'react-bootstrap'; import { Button } from 'react-bootstrap';
const UploadButton = ({ showModal }) => { function UploadButton({ showModal }) {
return ( return (
<Button variant='primary' onClick={showModal}> <Button variant='primary' onClick={showModal}>
Upload New Photos Upload New Photos