[Abhinav] | turned off the click event lisener on DrapAndDrop component
This commit is contained in:
parent
d71d89bada
commit
09f858e592
2 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -287,7 +287,7 @@ export default function Gallery() {
|
|||
selected={router.query.collection?.toString()}
|
||||
selectCollection={selectCollection}
|
||||
/>
|
||||
<FileUpload>
|
||||
<FileUpload noClick>
|
||||
{filteredData.length ? (
|
||||
<Container>
|
||||
<AutoSizer>
|
||||
|
|
Loading…
Add table
Reference in a new issue