Add a global image drop for dropping directly to the map screen

This commit is contained in:
Mitchell McCaffrey
2021-06-06 21:04:46 +10:00
parent 4e7ed1d625
commit 98f7744c1f
7 changed files with 178 additions and 7 deletions

View File

@@ -44,6 +44,18 @@ function StyledModal({
{content}
</animated.div>
)}
overlayElement={(props, content) => (
<div
onDragEnter={(e) => {
// Prevent drag event from triggering with a modal open
e.preventDefault();
e.stopPropagation();
}}
{...props}
>
{content}
</div>
)}
{...props}
>
{children}