-
Notifications
You must be signed in to change notification settings - Fork 77
feat: Remove React Router from Menu #293
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
Conversation
jbadan
left a comment
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 🚢
src/Menu/Menu.js
Outdated
|
|
||
| // ---------------------------------------- Menu Item ---------------------------------------- | ||
| export const MenuItem = ({ url, link, isLink, separator, addon, children, onclick, className, addonProps, linkProps, urlProps, ...props }) => { | ||
| export const MenuItem = ({ url, link, isLink, separator, addon, children, onclick, className, addonProps, urlProps, ...props }) => { |
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.
The link prop type was removed so can it be removed from here as well?
greg-a-smith
left a comment
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.
Assuming the build passes, this looks good. 🚢
|
Fixed the issue with the build. Simply had to make sure when spreading our |
* Saving state * Updating menu to factor out react-router * Update linting * Reverting breadcrumb for easier Menu PR * Updating Menu Component Documentation * Remove unneeded MemoryRouter component from test * Removing stray prop * Second commit * Second commit * Updating Menu PR to spread Classnames * Updating description
Description
In order to remove the dependency on React Router from Fundamentals-React (#115), we must refactor the the following components...
This PR is focused on Menu and does introduce breaking changes such as...
React Router Menu Example (NEW)
Anchor via children (NEW)
Anchor via Props (Classic)