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: menu not highlighted while navigating via url fixed -2 #316

Merged

Conversation

ashmeetsmonga
Copy link
Contributor

Corrected the issue #306 where the menu is not being highlighted if the page is visited by changing the url. Raising pr again as per request

Corrected.Issue.of.Menu.Highlighting.Demo.mov

Copy link
Collaborator

@polymahh polymahh left a comment

Choose a reason for hiding this comment

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

looking good

<Link to={'/'} />
Dashboard
</Menu.Item>
<Menu.Item key={'Customer'} icon={<CustomerServiceOutlined />}>
<Menu.Item key={'/customer'} icon={<CustomerServiceOutlined />}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of doing this, iterate the component and create a static array object constant that holds the key and the icon. so it will be easier to scale and reuse the component

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok changes done as requested, please review

@salahlalami salahlalami merged commit 176ccba into idurar:dev Aug 21, 2023
1 check passed
awesomedev82 pushed a commit to awesomedev82/idurar-erp-crm that referenced this pull request May 20, 2024
…ot-highlighted-2

fix: menu not highlighted while navigating via url fixed -2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants