converted component to normal functions
This commit is contained in:
parent
dfc8c88947
commit
63b26baa01
|
@ -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();
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue