Commit 93195fac by Peter Holmberg Committed by GitHub

Fix: Reimplement HideFromTabs in Tabs component (#21863)

* reimplement hidefromtabs

* remove console log

* going with option b instead

* less explicit
parent c140d110
......@@ -60,13 +60,15 @@ const Navigation = ({ main }: { main: NavModelItem }) => {
<TabsBar className="page-header__tabs" hideBorder={true}>
{main.children.map((child, index) => {
return (
<Tab
label={child.text}
active={child.active}
key={`${child.url}-${index}`}
icon={child.icon}
onChangeTab={() => goToUrl(index)}
/>
!child.hideFromTabs && (
<Tab
label={child.text}
active={child.active}
key={`${child.url}-${index}`}
icon={child.icon}
onChangeTab={() => goToUrl(index)}
/>
)
);
})}
</TabsBar>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment