chore: use monorepo organization
This commit is contained in:
parent
deaf7d6ecc
commit
a687827f7e
1099 changed files with 8184 additions and 11535 deletions
29
packages/admin-ui/src/components/inputs/base/Dropdown.jsx
Normal file
29
packages/admin-ui/src/components/inputs/base/Dropdown.jsx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import FormControl from '@mui/material/FormControl'
|
||||
import InputLabel from '@mui/material/InputLabel'
|
||||
import MenuItem from '@mui/material/MenuItem'
|
||||
import Select from '@mui/material/Select'
|
||||
import classnames from 'classnames'
|
||||
import React from 'react'
|
||||
|
||||
const Dropdown = ({ label, name, options, onChange, value, className }) => {
|
||||
return (
|
||||
<FormControl variant="standard" className={classnames(className)}>
|
||||
<InputLabel>{label}</InputLabel>
|
||||
<Select
|
||||
variant="standard"
|
||||
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