this.props.onOpenToggle(false)}
>
-
-
-
{this.props.children}
+
+
+
+
{this.props.children}
+
-
-
+
+ }
+ else {
+ return false;
+ }
}
}
diff --git a/src/components/modals/Overlay.jsx b/src/components/modals/Overlay.jsx
deleted file mode 100644
index 75374785..00000000
--- a/src/components/modals/Overlay.jsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import React from 'react'
-import PropTypes from 'prop-types'
-
-
-class Overlay extends React.Component {
- static propTypes = {
- isOpen: PropTypes.bool.isRequired,
- children: PropTypes.element.isRequired
- }
-
- render() {
- let overlayStyle = {}
- if(!this.props.isOpen) {
- overlayStyle['display'] = 'none';
- }
-
- return
-
- {this.props.children}
-
- }
-}
-
-export default Overlay
diff --git a/src/styles/_modal.scss b/src/styles/_modal.scss
index 897a836f..883b151e 100644
--- a/src/styles/_modal.scss
+++ b/src/styles/_modal.scss
@@ -7,6 +7,7 @@
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
z-index: 3;
position: relative;
+ font-family: $font-family;
}
.maputnik-modal-section {
@@ -60,31 +61,6 @@
@extend .maputnik-space;
}
-//OVERLAY
-.maputnik-overlay-viewport {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 2;
- opacity: 0.875;
- background-color: rgb(28, 31, 36);
-}
-
-.maputnik-overlay {
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- position: fixed;
- align-items: center;
- justify-content: center;
- z-index: 9;
-
- @include flex-row;
-}
-
//OPEN MODAL
.maputnik-upload-button {
@extend .maputnik-big-button;