Skip to content

Commit

Permalink
fix proptypes to receive array
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Nov 22, 2022
1 parent f551fbf commit a6fb6c9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/mui-material/src/GlobalStyles/GlobalStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ GlobalStyles.propTypes /* remove-proptypes */ = {
* The styles you want to apply globally.
*/
styles: PropTypes.oneOfType([
PropTypes.array,
PropTypes.func,
PropTypes.number,
PropTypes.object,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ export default GlobalStyles;

GlobalStyles.propTypes = {
defaultTheme: PropTypes.object,
styles: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]),
styles: PropTypes.oneOfType([
PropTypes.array,
PropTypes.string,
PropTypes.object,
PropTypes.func,
]),
};
7 changes: 6 additions & 1 deletion packages/mui-styled-engine/src/GlobalStyles/GlobalStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ export default function GlobalStyles(props) {

GlobalStyles.propTypes = {
defaultTheme: PropTypes.object,
styles: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]),
styles: PropTypes.oneOfType([
PropTypes.array,
PropTypes.string,
PropTypes.object,
PropTypes.func,
]),
};

0 comments on commit a6fb6c9

Please sign in to comment.