[Abhinav] | turned off the click event lisener on DrapAndDrop component

This commit is contained in:
Abhinav-grd 2021-01-05 08:13:38 +05:30
parent d71d89bada
commit 09f858e592
2 changed files with 3 additions and 2 deletions

View file

@ -29,13 +29,14 @@ const DropDiv = styled.div`
transition: border 0.24s ease-in-out;
`;
const FileUpload = ({ children }) => {
const FileUpload = ({ children, noClick }) => {
return (
<>
<Dropzone
onDrop={(acceptedFiles) => {
console.log(acceptedFiles);
}}
noClick={noClick}
>
{({
getRootProps,

View file

@ -287,7 +287,7 @@ export default function Gallery() {
selected={router.query.collection?.toString()}
selectCollection={selectCollection}
/>
<FileUpload>
<FileUpload noClick>
{filteredData.length ? (
<Container>
<AutoSizer>