-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from poap-xyz/release/v1.13.14
Release v1.13.14
- Loading branch information
Showing
35 changed files
with
762 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import PropTypes from 'prop-types' | ||
import ReactModal from 'react-modal' | ||
import 'styles/modal.css' | ||
|
||
/** | ||
* @param {PropTypes.InferProps<Modal.propTypes>} props | ||
*/ | ||
function Modal({ show, onClose, children, title }) { | ||
return ( | ||
<ReactModal | ||
isOpen={show} | ||
onRequestClose={() => onClose()} | ||
shouldCloseOnEsc={true} | ||
shouldCloseOnOverlayClick={true} | ||
contentLabel={title} | ||
className="modal" | ||
overlayClassName="overlay" | ||
> | ||
{children} | ||
</ReactModal> | ||
) | ||
} | ||
|
||
Modal.propTypes = { | ||
show: PropTypes.bool.isRequired, | ||
onClose: PropTypes.func.isRequired, | ||
children: PropTypes.node.isRequired, | ||
title: PropTypes.string, | ||
} | ||
|
||
export default Modal |
Oops, something went wrong.