Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Feb 29, 2024
1 parent 62d6555 commit ec368ce
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/pages/x/api/tree-view/rich-tree-view.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"props": {
"apiRef": { "type": { "name": "shape", "description": "{ current?: { focusNode: func } }" } },
"apiRef": {
"type": { "name": "shape", "description": "{ current?: { focusNode: func, getItem: func } }" }
},
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
"defaultExpandedNodes": {
"type": { "name": "arrayOf", "description": "Array<string>" },
Expand Down
4 changes: 3 additions & 1 deletion docs/pages/x/api/tree-view/simple-tree-view.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"props": {
"apiRef": { "type": { "name": "shape", "description": "{ current?: { focusNode: func } }" } },
"apiRef": {
"type": { "name": "shape", "description": "{ current?: { focusNode: func, getItem: func } }" }
},
"children": { "type": { "name": "node" } },
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
"defaultExpandedNodes": {
Expand Down
4 changes: 3 additions & 1 deletion docs/pages/x/api/tree-view/tree-view.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"props": {
"apiRef": { "type": { "name": "shape", "description": "{ current?: { focusNode: func } }" } },
"apiRef": {
"type": { "name": "shape", "description": "{ current?: { focusNode: func, getItem: func } }" }
},
"children": { "type": { "name": "node" } },
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
"defaultExpandedNodes": {
Expand Down
1 change: 1 addition & 0 deletions packages/x-tree-view/src/RichTreeView/RichTreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ RichTreeView.propTypes = {
apiRef: PropTypes.shape({
current: PropTypes.shape({
focusNode: PropTypes.func.isRequired,
getItem: PropTypes.func.isRequired,
}),
}),
/**
Expand Down
1 change: 1 addition & 0 deletions packages/x-tree-view/src/SimpleTreeView/SimpleTreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ SimpleTreeView.propTypes = {
apiRef: PropTypes.shape({
current: PropTypes.shape({
focusNode: PropTypes.func.isRequired,
getItem: PropTypes.func.isRequired,
}),
}),
/**
Expand Down
1 change: 1 addition & 0 deletions packages/x-tree-view/src/TreeView/TreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ TreeView.propTypes = {
apiRef: PropTypes.shape({
current: PropTypes.shape({
focusNode: PropTypes.func.isRequired,
getItem: PropTypes.func.isRequired,
}),
}),
/**
Expand Down

0 comments on commit ec368ce

Please sign in to comment.