partial: second codemod
This commit is contained in:
parent
86e3401cc8
commit
4f9b23b108
2 changed files with 6 additions and 5 deletions
|
|
@ -7,9 +7,10 @@ import React from 'react'
|
||||||
|
|
||||||
const Dropdown = ({ label, name, options, onChange, value, className }) => {
|
const Dropdown = ({ label, name, options, onChange, value, className }) => {
|
||||||
return (
|
return (
|
||||||
<FormControl className={classnames(className)}>
|
<FormControl variant="standard" className={classnames(className)}>
|
||||||
<InputLabel>{label}</InputLabel>
|
<InputLabel>{label}</InputLabel>
|
||||||
<Select
|
<Select
|
||||||
|
variant="standard"
|
||||||
autoWidth={true}
|
autoWidth={true}
|
||||||
labelId={label}
|
labelId={label}
|
||||||
id={name}
|
id={name}
|
||||||
|
|
@ -22,7 +23,7 @@ const Dropdown = ({ label, name, options, onChange, value, className }) => {
|
||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Dropdown
|
export default Dropdown
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ const TextInput = memo(
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TextField
|
<TextField
|
||||||
|
variant="standard"
|
||||||
id={name}
|
id={name}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
onBlur={onBlur}
|
onBlur={onBlur}
|
||||||
|
|
@ -50,9 +51,8 @@ const TextInput = memo(
|
||||||
},
|
},
|
||||||
...InputProps
|
...InputProps
|
||||||
}}
|
}}
|
||||||
{...props}
|
{...props} />
|
||||||
/>
|
);
|
||||||
)
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue