-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[TreeView] Introduce a new TreeItem2
component and a new useTreeItem2
hook
#11721
[TreeView] Introduce a new TreeItem2
component and a new useTreeItem2
hook
#11721
Conversation
useTreeItem
Deploy preview: https://deploy-preview-11721--material-ui-x.netlify.app/ Updated pages: |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@@ -1,76 +1,37 @@ | |||
import * as React from 'react'; |
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 migrated this example to the new API to give an example of what it would look like
BUT we should not merge it like this, we should keep the old example until the new API is public
@@ -1,93 +1,72 @@ | |||
import * as React from 'react'; |
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 migrated this example to the new API to give an example of what it would look like
BUT we should not merge it like this, we should keep the old example until the new API is public
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 way cleaner! 💙
b865414
to
33f3c9f
Compare
useTreeItem
TreeItem2
component and a new useTreeItem2
hook
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
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.
Great work! 👏
Leaving a bit of mostly nitpick comments. 🙈
docs/data/tree-view/rich-tree-view/customization/LabelSlots.tsx
Outdated
Show resolved
Hide resolved
docs/data/tree-view/rich-tree-view/customization/LabelSlots.tsx
Outdated
Show resolved
Hide resolved
docs/data/tree-view/rich-tree-view/customization/customization.md
Outdated
Show resolved
Hide resolved
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.
Great improvement! 👏 💯
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Closes #12287
Fixes #12284
Waiting for #12231 to have a coherent "RichTreeView - Customization" doc page