chore: use proper name convention for build tools

This commit is contained in:
Rafael 2024-11-30 10:17:41 +00:00
parent 62f39f3561
commit d646aee24b
283 changed files with 353 additions and 422 deletions

View file

@ -0,0 +1,28 @@
import FormControl from '@material-ui/core/FormControl'
import InputLabel from '@material-ui/core/InputLabel'
import MenuItem from '@material-ui/core/MenuItem'
import Select from '@material-ui/core/Select'
import classnames from 'classnames'
import React from 'react'
const Dropdown = ({ label, name, options, onChange, value, className }) => {
return (
<FormControl className={classnames(className)}>
<InputLabel>{label}</InputLabel>
<Select
autoWidth={true}
labelId={label}
id={name}
value={value}
onChange={onChange}>
{options.map((option, index) => (
<MenuItem key={index} value={option.value}>
{option.display}
</MenuItem>
))}
</Select>
</FormControl>
)
}
export default Dropdown