You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, is there any way to conditionally show/ hide the navbar links? I'm also curious if instead of passing just an href to a link I can attach a react function to one of the links. (Also I know you can show / hide links by specifying them in the _meta.json. I have some state in react that I need to conditionally render certain links)
Using the theme.config.jsx I've tried implementing the navbar.component, but it replaces the whole nav and I want to keep the default navbar and build on top of it.
I noticed if you implement the sidebar.titleComponent the style stays the same and you can add functionality to the sidebar, which is perfect. I'm curious if there's a parallel for the navbar. Any pointers would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, is there any way to conditionally show/ hide the navbar links? I'm also curious if instead of passing just an href to a link I can attach a react function to one of the links. (Also I know you can show / hide links by specifying them in the _meta.json. I have some state in react that I need to conditionally render certain links)
Using the theme.config.jsx I've tried implementing the navbar.component, but it replaces the whole nav and I want to keep the default navbar and build on top of it.
I noticed if you implement the sidebar.titleComponent the style stays the same and you can add functionality to the sidebar, which is perfect. I'm curious if there's a parallel for the navbar. Any pointers would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions