mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-20 11:25:58 +00:00
prop types added to NavBarButton
This commit is contained in:
parent
96e0a79771
commit
23387bd4b2
1 changed files with 9 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
const React = require('react');
|
||||
const PropTypes = require('prop-types');
|
||||
const classnames = require('classnames');
|
||||
const UrlUtils = require('url');
|
||||
const Icon = require('stremio-icons/dom');
|
||||
|
|
@ -24,4 +25,12 @@ const NavBarButton = React.memo(({ className, icon, label, href, onClick }) => {
|
|||
);
|
||||
});
|
||||
|
||||
NavBarButton.propTypes = {
|
||||
className: PropTypes.string,
|
||||
icon: PropTypes.string,
|
||||
label: PropTypes.string,
|
||||
href: PropTypes.string,
|
||||
onClick: PropTypes.func
|
||||
};
|
||||
|
||||
module.exports = NavBarButton;
|
||||
|
|
|
|||
Loading…
Reference in a new issue