mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 18:02:13 +00:00
legacy NavTab component dropped
This commit is contained in:
parent
bd949bca74
commit
61953cbb11
3 changed files with 0 additions and 61 deletions
|
|
@ -1,26 +0,0 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import Icon from 'stremio-icons/dom';
|
||||
import styles from './styles';
|
||||
|
||||
const NavTab = ({ to, exact, replace, icon, label }) => (
|
||||
<NavLink className={styles['nav-tab']} activeClassName={styles['active']} to={to} exact={exact} replace={replace}>
|
||||
<Icon className={styles['nav-tab-icon']} icon={icon} />
|
||||
<h2 className={styles['nav-tab-label']}>{label}</h2>
|
||||
</NavLink>
|
||||
);
|
||||
|
||||
NavTab.propTypes = {
|
||||
icon: PropTypes.string.isRequired,
|
||||
label: PropTypes.string.isRequired,
|
||||
to: PropTypes.string.isRequired,
|
||||
exact: PropTypes.bool.isRequired,
|
||||
replace: PropTypes.bool.isRequired
|
||||
};
|
||||
|
||||
NavTab.defaultProps = {
|
||||
exact: false,
|
||||
replace: false
|
||||
};
|
||||
|
||||
export default NavTab;
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
import NavTab from './NavTab';
|
||||
|
||||
export default NavTab;
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
|
||||
@import 'constants';
|
||||
.nav-tab {
|
||||
height: @nav-bar-height;
|
||||
padding: 0 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.nav-tab-icon {
|
||||
height: @nav-bar-height;
|
||||
fill: var(--color-surfacelighter80);
|
||||
width: 18px;
|
||||
}
|
||||
.nav-tab-label {
|
||||
color: var(--color-surfacelighter80);
|
||||
font-size: 15px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
&.active {
|
||||
background-color: var(--color-backgrounddark);
|
||||
}
|
||||
&:hover:not(.active) {
|
||||
background-color: var(--color-backgrounddark20);
|
||||
}
|
||||
&:hover, &.active {
|
||||
.nav-tab-icon {
|
||||
fill: var(--color-surfacelighter);
|
||||
}
|
||||
.nav-tab-label {
|
||||
color: var(--color-surfacelighter);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue