Skip to content

Commit

Permalink
[Tabs] Fix indicatorColor prop type (#33569)
Browse files Browse the repository at this point in the history
fix PropTypes
  • Loading branch information
ZeeshanTamboli committed Jul 19, 2022
1 parent 6d11ed4 commit 6275be7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/pages/material-ui/api/tabs.json
Expand Up @@ -9,7 +9,10 @@
"classes": { "type": { "name": "object" } },
"component": { "type": { "name": "elementType" } },
"indicatorColor": {
"type": { "name": "enum", "description": "'primary'<br>&#124;&nbsp;'secondary'" },
"type": {
"name": "union",
"description": "'primary'<br>&#124;&nbsp;'secondary'<br>&#124;&nbsp;string"
},
"default": "'primary'"
},
"onChange": { "type": { "name": "func" } },
Expand Down
5 changes: 4 additions & 1 deletion packages/mui-material/src/Tabs/Tabs.js
Expand Up @@ -817,7 +817,10 @@ Tabs.propTypes /* remove-proptypes */ = {
* Determines the color of the indicator.
* @default 'primary'
*/
indicatorColor: PropTypes.oneOf(['primary', 'secondary']),
indicatorColor: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.oneOf(['primary', 'secondary']),
PropTypes.string,
]),
/**
* Callback fired when the value changes.
*
Expand Down

0 comments on commit 6275be7

Please sign in to comment.