Skip to content

Commit

Permalink
fix static build
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 25, 2021
1 parent 71a5898 commit d70b8e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const AccordionDetailsRoot = experimentalStyled(
const AccordionDetails = React.forwardRef(function AccordionDetails(inProps, ref) {
const props = useThemeProps({ props: inProps, name: 'MuiAccordionDetails' });
const { className, ...other } = props;
// TODO: convert to simple assignment after the type error in defaultPropsHandler.js:60:6 is fixed
const styleProps = { ...props };

const classes = useUtilityClasses(styleProps);
Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/src/SnackbarContent/SnackbarContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ const SnackbarContentAction = experimentalStyled(
const SnackbarContent = React.forwardRef(function SnackbarContent(inProps, ref) {
const props = useThemeProps({ props: inProps, name: 'MuiSnackbarContent' });
const { action, className, message, role = 'alert', ...other } = props;
const styleProps = props;
// TODO: convert to simple assignment after the type error in defaultPropsHandler.js:60:6 is fixed
const styleProps = { ...props };
const classes = useUtilityClasses(styleProps);

return (
Expand Down

0 comments on commit d70b8e8

Please sign in to comment.