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

Allow 'object' propType in 'to' prop of 'MenuItemLink' #2584

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

afilp
Copy link
Contributor

@afilp afilp commented Nov 27, 2018

As documented in react-router, the <NavLink> component can have either string or object type for its `to' property:

https://reacttraining.com/react-router/web/api/Link

Some developers use it as such:

              <MenuItemLink
                to={{
                  pathname: '/departments',
                }}
                primaryText="departments"
                title="departments"
                onClick={onMenuClick}
                leftIcon={<BusinessIcon />}
              />

@fzaninotto fzaninotto merged commit caeffe3 into marmelab:master Nov 28, 2018
@fzaninotto
Copy link
Member

Thanks!

@fzaninotto fzaninotto added this to the 2.4.4 milestone Nov 28, 2018
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.

2 participants