Skip to content

Commit 27359e4

Browse files
committed
fixed tests
1 parent ecda71a commit 27359e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/material-ui/src/styles/muiStyled.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ const getVariantStyles = (name, theme) => {
3434
};
3535

3636
const variantsResolver = (props, styles, theme, name) => {
37-
const { state = {} } = props;
37+
const { styleProps = {} } = props;
3838
let variantsStyles = {};
3939
const themeVariants = theme?.components?.[name]?.variants;
4040
if (themeVariants) {
4141
themeVariants.forEach((themeVariant) => {
4242
let isMatch = true;
4343
Object.keys(themeVariant.props).forEach((key) => {
44-
if (state[key] !== themeVariant.props[key]) {
44+
if (styleProps[key] !== themeVariant.props[key]) {
4545
isMatch = false;
4646
}
4747
});

0 commit comments

Comments
 (0)