-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: extra button behaviour in navbar #566
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -27,7 +28,9 @@ export const MenuItem = (props: MenuItemProps) => { | |||
<Menu.Item | |||
active={activePage === section} | |||
onClick={(e: React.MouseEvent) => { | |||
isMobile ? onToggleShowSubMenu(e, true, section) : mainRedirect() | |||
isMobile && !isExtraButton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT about checking if the onToggleShowSubMenu
prop is defined instead of adding a new prop.
Both work for me anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, your option is better. My suggestion won't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
🎉 This PR is included in version 6.12.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.