mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-05 04:19:55 +00:00
not needed props removed from NavTabButton
This commit is contained in:
parent
b420d236a3
commit
c2ec423b42
1 changed files with 2 additions and 3 deletions
|
|
@ -5,9 +5,9 @@ const Icon = require('stremio-icons/dom');
|
|||
const Button = require('stremio/common/Button');
|
||||
const styles = require('./styles');
|
||||
|
||||
const NavTabButton = ({ className, icon, label, href, selected, route, direction, onClick }) => {
|
||||
const NavTabButton = ({ className, icon, label, href, selected, direction, onClick }) => {
|
||||
return (
|
||||
<Button className={classnames(className, styles['nav-tab-button-container'], styles[`nav-tab-button-${direction}`], { 'selected': selected })} title={label} tabIndex={-1} href={href} route={route} direction={direction} onClick={onClick}>
|
||||
<Button className={classnames(className, styles['nav-tab-button-container'], styles[`nav-tab-button-${direction}`], { 'selected': selected })} title={label} tabIndex={-1} href={href} onClick={onClick}>
|
||||
{
|
||||
typeof icon === 'string' && icon.length > 0 ?
|
||||
<Icon className={styles['icon']} icon={icon} />
|
||||
|
|
@ -30,7 +30,6 @@ NavTabButton.propTypes = {
|
|||
label: PropTypes.string,
|
||||
href: PropTypes.string,
|
||||
selected: PropTypes.bool,
|
||||
route: PropTypes.string,
|
||||
direction: PropTypes.oneOf(['horizontal', 'vertical']),
|
||||
onClick: PropTypes.func
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue