partial: second codemod

This commit is contained in:
Rafael Taranto 2025-04-15 12:11:07 +01:00
parent 86e3401cc8
commit 4f9b23b108
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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} />
/> );
)
} }
) )