mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 15:52:02 +00:00
prop types added to Modal
This commit is contained in:
parent
8e6d4812ad
commit
b2cec739ae
1 changed files with 6 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import React, { PureComponent } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
@ -28,4 +29,9 @@ class Modal extends PureComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Modal.propTypes = {
|
||||||
|
onRequestClose: PropTypes.func,
|
||||||
|
className: PropTypes.string
|
||||||
|
};
|
||||||
|
|
||||||
export default Modal;
|
export default Modal;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue