mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 21:12:13 +00:00
non needed props removed from NavTabButton
This commit is contained in:
parent
43a506e73a
commit
19e03aa099
1 changed files with 2 additions and 3 deletions
|
|
@ -8,17 +8,16 @@ const VerticalNavBar = React.memo(({ className, route, tabs }) => {
|
|||
return (
|
||||
<nav className={classnames(className, styles['vertical-nav-bar-container'])}>
|
||||
{
|
||||
Array.isArray(tabs) && tabs.length > 0 ?
|
||||
Array.isArray(tabs) ?
|
||||
tabs.map((tab, index) => (
|
||||
<NavTabButton
|
||||
key={index}
|
||||
className={styles['nav-tab-button']}
|
||||
direction={'vertical'}
|
||||
selected={tab.route === route}
|
||||
href={tab.href}
|
||||
icon={tab.icon}
|
||||
label={tab.label}
|
||||
route={tab.route}
|
||||
direction={'vertical'}
|
||||
onClick={tab.onClick}
|
||||
/>
|
||||
))
|
||||
|
|
|
|||
Loading…
Reference in a new issue