Skip to content
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

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

braianj
Copy link
Contributor

@braianj braianj commented Nov 21, 2024

No description provided.

@braianj braianj self-assigned this Nov 21, 2024
@braianj braianj added the bug Something isn't working label Nov 21, 2024
Copy link

vercel bot commented Nov 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
decentraland-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 3:29pm

@@ -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
Copy link
Contributor

@kevinszuchet kevinszuchet Nov 21, 2024

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.

Copy link
Contributor

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

Copy link
Contributor

@kevinszuchet kevinszuchet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@braianj braianj merged commit 7c48103 into master Nov 21, 2024
6 checks passed
@braianj braianj deleted the fix/mobile-link--navbar-extra-button branch November 21, 2024 16:11
Copy link

🎉 This PR is included in version 6.12.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants