Skip to content
Snippets Groups Projects
Commit 16b1c907 authored by Ray Schamp's avatar Ray Schamp
Browse files

Fix components for react-modal 1.6.5

parent e8fdd3b8
Branches
Tags
No related merge requests found
......@@ -24,6 +24,7 @@ class LibraryComponent extends React.Component {
render () {
return (
<ModalComponent
contentLabel={this.props.title}
visible={this.props.visible}
onRequestClose={this.props.onRequestClose}
>
......@@ -67,7 +68,7 @@ LibraryComponent.propTypes = {
),
onItemSelected: React.PropTypes.func,
onRequestClose: React.PropTypes.func,
title: React.PropTypes.string,
title: React.PropTypes.string.isRequired,
visible: React.PropTypes.bool
};
......
......@@ -10,6 +10,7 @@ class ModalComponent extends React.Component {
return (
<ReactModal
className={styles.modalContent}
contentLabel={this.props.contentLabel}
isOpen={this.props.visible}
overlayClassName={styles.modalOverlay}
ref={m => (this.modal = m)}
......@@ -34,6 +35,7 @@ class ModalComponent extends React.Component {
ModalComponent.propTypes = {
children: React.PropTypes.node,
contentLabel: React.PropTypes.string.isRequired,
onRequestClose: React.PropTypes.func,
visible: React.PropTypes.bool
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment