Skip to content

Commit

Permalink
[core] Remove unnecessary conditional around .muiName = (#44071)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Dec 20, 2024
1 parent 95ae871 commit 2dacfe6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 18 deletions.
4 changes: 1 addition & 3 deletions packages/mui-material/src/FilledInput/FilledInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,6 @@ FilledInput.propTypes /* remove-proptypes */ = {
value: PropTypes.any,
};

if (FilledInput) {
FilledInput.muiName = 'Input';
}
FilledInput.muiName = 'Input';

export default FilledInput;
4 changes: 1 addition & 3 deletions packages/mui-material/src/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ Icon.propTypes /* remove-proptypes */ = {
]),
};

if (Icon) {
Icon.muiName = 'Icon';
}
Icon.muiName = 'Icon';

export default Icon;
4 changes: 1 addition & 3 deletions packages/mui-material/src/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@ Input.propTypes /* remove-proptypes */ = {
value: PropTypes.any,
};

if (Input) {
Input.muiName = 'Input';
}
Input.muiName = 'Input';

export default Input;
4 changes: 1 addition & 3 deletions packages/mui-material/src/OutlinedInput/OutlinedInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ OutlinedInput.propTypes /* remove-proptypes */ = {
value: PropTypes.any,
};

if (OutlinedInput) {
OutlinedInput.muiName = 'Input';
}
OutlinedInput.muiName = 'Input';

export default OutlinedInput;
4 changes: 1 addition & 3 deletions packages/mui-material/src/StepLabel/StepLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@ StepLabel.propTypes /* remove-proptypes */ = {
]),
};

if (StepLabel) {
StepLabel.muiName = 'StepLabel';
}
StepLabel.muiName = 'StepLabel';

export default StepLabel;
4 changes: 1 addition & 3 deletions packages/mui-material/src/SvgIcon/SvgIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ SvgIcon.propTypes /* remove-proptypes */ = {
viewBox: PropTypes.string,
};

if (SvgIcon) {
SvgIcon.muiName = 'SvgIcon';
}
SvgIcon.muiName = 'SvgIcon';

export default SvgIcon;

0 comments on commit 2dacfe6

Please sign in to comment.