mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 00:32:06 +00:00
active flag renamed in NavTabButton
This commit is contained in:
parent
64ee4ddb23
commit
cbbbbd11a1
1 changed files with 2 additions and 2 deletions
|
|
@ -19,9 +19,9 @@ const NavTabButton = ({ className, icon, label, href, onClick }) => {
|
|||
|
||||
return null;
|
||||
}, [href]);
|
||||
const active = useRouteActive(routeRegexp);
|
||||
const routeActive = useRouteActive(routeRegexp);
|
||||
return (
|
||||
<Button className={classnames(className, styles['nav-tab-button-container'], { 'active': active })} title={label} tabIndex={-1} href={href} onClick={onClick}>
|
||||
<Button className={classnames(className, styles['nav-tab-button-container'], { 'active': routeActive })} title={label} tabIndex={-1} href={href} onClick={onClick}>
|
||||
{
|
||||
typeof icon === 'string' && icon.length > 0 ?
|
||||
<Icon className={styles['icon']} icon={icon} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue