-
Notifications
You must be signed in to change notification settings - Fork 77
fix: CORUI-6264: One component per file Menu #434
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
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.
blocking until fundamental-bot is reinstated #435
src/index.js
Outdated
| export { default as Menu } from './Menu/Menu'; | ||
| export { default as MenuList } from './Menu/MenuList'; | ||
| export { default as MenuItem } from './Menu/MenuItem'; | ||
| export { default as MenuGroup } from './Menu/MenuGroup'; |
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.
I would have expected to see all these as static references on Menu and then only Menu would be exported. Something like:
Menu.Item = MenuItem;
Menu.Group = MenuGroup;
Menu.List = MenuList;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.
I agree, should've caught that. Moved to subcomponents in 8127fcc
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.
Looks good. 🚢
* Rename file * Rename temp * Restore original * Rename file * Rename temp * Restore original * Rename file * Rename temp * Restore original * Separate components * Move Menu subcomponents * Update snapshot with correct on click function
Description
Menudirectory into their own files.