Skip to content

Commit 231e877

Browse files
committed
fix wrong transformation
1 parent d6cd77f commit 231e877

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/mui-material/src/Container/Container.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Container = createContainer({
2020
];
2121
},
2222
}),
23-
useDefaultProps: (inProps) => useDefaultProps({ props: inProps, name: 'MuiContainer' }),
23+
useThemeProps: (inProps) => useDefaultProps({ props: inProps, name: 'MuiContainer' }),
2424
});
2525

2626
Container.propTypes /* remove-proptypes */ = {

packages/mui-material/src/Stack/Stack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Stack = createStack({
1010
slot: 'Root',
1111
overridesResolver: (props, styles) => styles.root,
1212
}),
13-
useDefaultProps: (inProps) => useDefaultProps({ props: inProps, name: 'MuiStack' }),
13+
useThemeProps: (inProps) => useDefaultProps({ props: inProps, name: 'MuiStack' }),
1414
});
1515

1616
Stack.propTypes /* remove-proptypes */ = {

packages/mui-material/src/Unstable_Grid2/Grid2.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import PropTypes from 'prop-types';
33
import { createGrid as createGrid2 } from '@mui/system/Unstable_Grid';
44
import { OverridableComponent } from '@mui/types';
5-
import { styled, useDefaultProps } from '../styles';
5+
import { styled } from '../styles';
6+
import { useDefaultProps } from '../DefaultPropsProvider';
67
import { Grid2TypeMap } from './Grid2Props';
78

89
const Grid2 = createGrid2({
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { useDefaultProps } from '../DefaultPropsProvider';
1+
import useThemeProps from '../styles/useThemeProps';
22

33
export { default as styled } from '../styles/styled';
44

55
// eslint-disable-next-line @typescript-eslint/no-unused-vars
66
export function createUseThemeProps(name: string) {
7-
return useDefaultProps;
7+
return useThemeProps;
88
}

0 commit comments

Comments
 (0)