CEC-3672 Update manifest version on deploy (#277)
* CEC-3672 Add versions to CarUpdatesContext Stub out getSoftwareVersions and updateManifestVersion * CEC-3672 update version on deploy * Validate version before updating
This commit is contained in:
25
src/components/Controls/DropDownList/index.jsx
Normal file
25
src/components/Controls/DropDownList/index.jsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { FormControl, InputLabel, Select } from "@material-ui/core";
|
||||
|
||||
export const DropDownList = ({data, label, value, labelField, valueField, onChange, classes, ...others}) => {
|
||||
return (
|
||||
<FormControl
|
||||
variant="outlined"
|
||||
margin="normal"
|
||||
>
|
||||
<InputLabel className={classes.whiteBackground}>
|
||||
{label}
|
||||
</InputLabel>
|
||||
<Select
|
||||
native
|
||||
value={value}
|
||||
variant="outlined"
|
||||
onChange={onChange}
|
||||
{...others}
|
||||
>
|
||||
{data && data.map((item, index) => (
|
||||
<option key={index} value={item[valueField || "value"]}>{item[labelField || "label"]}</option>
|
||||
))}
|
||||
</Select>
|
||||
</FormControl>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user