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 }) => {
|
||||
return (
|
||||
<FormControl className={classnames(className)}>
|
||||
<FormControl variant="standard" className={classnames(className)}>
|
||||
<InputLabel>{label}</InputLabel>
|
||||
<Select
|
||||
variant="standard"
|
||||
autoWidth={true}
|
||||
labelId={label}
|
||||
id={name}
|
||||
|
|
@ -22,7 +23,7 @@ const Dropdown = ({ label, name, options, onChange, value, className }) => {
|
|||
))}
|
||||
</Select>
|
||||
</FormControl>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
export default Dropdown
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ const TextInput = memo(
|
|||
|
||||
return (
|
||||
<TextField
|
||||
variant="standard"
|
||||
id={name}
|
||||
onChange={onChange}
|
||||
onBlur={onBlur}
|
||||
|
|
@ -50,9 +51,8 @@ const TextInput = memo(
|
|||
},
|
||||
...InputProps
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
{...props} />
|
||||
);
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue