worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
12
node_modules/@mui/system/esm/useThemeProps/getThemeProps.js
generated
vendored
Normal file
12
node_modules/@mui/system/esm/useThemeProps/getThemeProps.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import resolveProps from '@mui/utils/resolveProps';
|
||||
export default function getThemeProps(params) {
|
||||
const {
|
||||
theme,
|
||||
name,
|
||||
props
|
||||
} = params;
|
||||
if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {
|
||||
return props;
|
||||
}
|
||||
return resolveProps(theme.components[name].defaultProps, props);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue