Skip to content

Commit

Permalink
[TreeView] Update JSDoc of the ContentComponent prop to avoid using…
Browse files Browse the repository at this point in the history
… the word "node" (#12476)
  • Loading branch information
flaviendelangle committed Mar 18, 2024
1 parent bae7c10 commit b438784
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"children": { "description": "The content of the component." },
"classes": { "description": "Override or extend the styles applied to the component." },
"ContentComponent": {
"description": "The component used for the content node.",
"description": "The component used to render the content of the item.",
"requiresRef": true
},
"ContentProps": { "description": "Props applied to ContentComponent." },
Expand Down
2 changes: 1 addition & 1 deletion packages/x-tree-view/src/TreeItem/TreeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ TreeItem.propTypes = {
classes: PropTypes.object,
className: PropTypes.string,
/**
* The component used for the content node.
* The component used to render the content of the item.
* @default TreeItemContent
*/
ContentComponent: elementTypeAcceptingRef,
Expand Down
2 changes: 1 addition & 1 deletion packages/x-tree-view/src/TreeItem/TreeItem.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface TreeItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>,
*/
slotProps?: TreeItemSlotProps;
/**
* The component used for the content node.
* The component used to render the content of the item.
* @default TreeItemContent
*/
ContentComponent?: React.JSXElementConstructor<TreeItemContentProps>;
Expand Down

0 comments on commit b438784

Please sign in to comment.