paradiego
This commit is contained in:
15
node_modules/@mui/material/FormControl/formControlState.js
generated
vendored
Normal file
15
node_modules/@mui/material/FormControl/formControlState.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
export default function formControlState({
|
||||
props,
|
||||
states,
|
||||
muiFormControl
|
||||
}) {
|
||||
return states.reduce((acc, state) => {
|
||||
acc[state] = props[state];
|
||||
if (muiFormControl) {
|
||||
if (typeof props[state] === 'undefined') {
|
||||
acc[state] = muiFormControl[state];
|
||||
}
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
}
|
||||
Reference in New Issue
Block a user