mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-12 07:00:28 +00:00
PropTypes definitions
This commit is contained in:
parent
56fd4e1a78
commit
30305da623
1 changed files with 11 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
const React = require('react');
|
||||
const PropTypes = require('prop-types');
|
||||
const { Button } = require('stremio/common');
|
||||
const classnames = require('classnames');
|
||||
const styles = require('../styles');
|
||||
|
|
@ -15,4 +16,13 @@ const SectionsSelector = ({ className, sections, selectedSectionId, onSelectedSe
|
|||
);
|
||||
};
|
||||
|
||||
module.exports = SectionsSelector;
|
||||
SectionsSelector.propTypes = {
|
||||
className: PropTypes.string,
|
||||
sections: PropTypes.arrayOf(PropTypes.shape({
|
||||
id: PropTypes.string.isRequired,
|
||||
})),
|
||||
selectedSectionId: PropTypes.string.isRequired,
|
||||
onSelectedSection: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
module.exports = SectionsSelector;
|
||||
|
|
|
|||
Loading…
Reference in a new issue