File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
packages/mui-material/src Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff 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
2626Container . propTypes /* remove-proptypes */ = {
Original file line number Diff line number Diff 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
1616Stack . propTypes /* remove-proptypes */ = {
Original file line number Diff line number Diff line change 22import PropTypes from 'prop-types' ;
33import { createGrid as createGrid2 } from '@mui/system/Unstable_Grid' ;
44import { OverridableComponent } from '@mui/types' ;
5- import { styled , useDefaultProps } from '../styles' ;
5+ import { styled } from '../styles' ;
6+ import { useDefaultProps } from '../DefaultPropsProvider' ;
67import { Grid2TypeMap } from './Grid2Props' ;
78
89const Grid2 = createGrid2 ( {
Original file line number Diff line number Diff line change 1- import { useDefaultProps } from '../DefaultPropsProvider ' ;
1+ import useThemeProps from '../styles/useThemeProps ' ;
22
33export { default as styled } from '../styles/styled' ;
44
55// eslint-disable-next-line @typescript-eslint/no-unused-vars
66export function createUseThemeProps ( name : string ) {
7- return useDefaultProps ;
7+ return useThemeProps ;
88}
You can’t perform that action at this time.
0 commit comments