-
Notifications
You must be signed in to change notification settings - Fork 8
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
Rename menu components #2996
base: next
Are you sure you want to change the base?
Rename menu components #2996
Conversation
68f98e9
to
e5be58b
Compare
2774972
to
e31290c
Compare
e31290c
to
2461d1d
Compare
packages/admin/admin/src/mui/mainNavigation/CollapsibleItem.styles.ts
Outdated
Show resolved
Hide resolved
Now we have the terms main navigation and master menu for related, but different things. Might this confuse devs? @jamesricky what do you think? |
Since |
Okay. Let's defer this for now. |
.changeset/eighty-rockets-yell.md
Outdated
@@ -27,4 +27,4 @@ To better differentiate between imports from `@comet/admin` and `@mui/material`, | |||
- `MenuItemRouterLink` → `MainNavigationItemRouterLink` | |||
- `MenuItemRouterLinkProps` → `MainNavigationItemRouterLinkProps` | |||
|
|||
Add `useMainNavigation()` hook to use instead of `MainNavigationContext` | |||
Remove export of `MainNavigationContent`. Use `useMainNavigation()` hook instead. |
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 think when mentioning the removal, it should use the previous name, as the new one didn't exist yet.
Also you can remove the mention of the rename for the removed item, as this won't be relevant.
Remove `MenuContext`, use the `useMainNavigation()` hook instead.
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.
Also you can remove the mention of the rename for the removed item, as this won't be relevant.
Please also remove the mention of the rename of IMenuContext
and MenuContext
as this is now irrelevant as they are now internal.
Co-authored-by: Johannes Obermair <[email protected]>
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. Conflicts need to be resolved though.
Description
Rename all Menu components to better differentiate between comet and mui components:
Acceptance criteria
Open TODOs/questions
Further information