Skip to content

Commit

Permalink
chore(25879): type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouse Braun committed Apr 22, 2021
1 parent 6ea4eda commit 662c339
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/pages/api-docs/form-control-label.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"props": {
"control": { "type": { "name": "element" }, "required": true },
"disableTypography": { "type": { "name": "bool" }, "required": true },
"checked": { "type": { "name": "bool" } },
"classes": { "type": { "name": "object" } },
"disabled": { "type": { "name": "bool" } },
"disableTypography": { "type": { "name": "bool" } },
"inputRef": { "type": { "name": "custom", "description": "ref" } },
"label": { "type": { "name": "node" } },
"labelPlacement": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface FormControlLabelProps
/**
* If `true`, the label is rendered as it is passed without an additional typography node.
*/
disableTypography: boolean;
disableTypography?: boolean;
/**
* Pass a ref to the `input` element.
*/
Expand All @@ -56,7 +56,7 @@ export interface FormControlLabelProps
* (as long as disableTypography is not `true`).
* @default {}
*/
labelTypographyProps: TypographyProps;
labelTypographyProps?: TypographyProps;
name?: string;
/**
* Callback fired when the state is changed.
Expand Down
4 changes: 2 additions & 2 deletions packages/material-ui/src/FormControlLabel/FormControlLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ FormControlLabel.propTypes /* remove-proptypes */ = {
/**
* If `true`, the label is rendered as it is passed without an additional typography node.
*/
disableTypography: PropTypes.bool.isRequired,
disableTypography: PropTypes.bool,
/**
* Pass a ref to the `input` element.
*/
Expand All @@ -190,7 +190,7 @@ FormControlLabel.propTypes /* remove-proptypes */ = {
* (as long as disableTypography is not `true`).
* @default {}
*/
labelTypographyProps: PropTypes.object.isRequired,
labelTypographyProps: PropTypes.object,
/**
* @ignore
*/
Expand Down

0 comments on commit 662c339

Please sign in to comment.