Updating modal
This commit is contained in:
parent
2cf03762e1
commit
fe874a2a6b
|
@ -12,7 +12,7 @@ const Modal = props => (
|
||||||
);
|
);
|
||||||
|
|
||||||
Modal.propTypes = {
|
Modal.propTypes = {
|
||||||
isModalOpen: PropTypes.bool.isRequired,
|
isModalOpen: PropTypes.bool,
|
||||||
children: PropTypes.shape({}).isRequired,
|
children: PropTypes.shape({}).isRequired,
|
||||||
closeModal: PropTypes.func.isRequired,
|
closeModal: PropTypes.func.isRequired,
|
||||||
modalOnMobileOnly: PropTypes.bool,
|
modalOnMobileOnly: PropTypes.bool,
|
||||||
|
@ -20,6 +20,7 @@ Modal.propTypes = {
|
||||||
|
|
||||||
Modal.defaultProps = {
|
Modal.defaultProps = {
|
||||||
modalOnMobileOnly: false,
|
modalOnMobileOnly: false,
|
||||||
|
isModalOpen: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Modal;
|
export default Modal;
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
@media (min-width: $desktop) {
|
@media (min-width: $desktop) {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
display: block;
|
||||||
|
position: initial;
|
||||||
|
width: auto;
|
||||||
|
|
||||||
.modal-inner {
|
.modal-inner {
|
||||||
position: initial;
|
position: initial;
|
||||||
|
|
Loading…
Reference in New Issue