chore: use proper name convention for build tools
This commit is contained in:
parent
62f39f3561
commit
d646aee24b
283 changed files with 353 additions and 422 deletions
28
new-lamassu-admin/src/components/inputs/base/Dropdown.jsx
Normal file
28
new-lamassu-admin/src/components/inputs/base/Dropdown.jsx
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue