CEC-1050 New manifest format (#117)
* CEC-1050 Manifest changes * Fix delete bug * Add approve update button * Code smell * Remove update approval
This commit is contained in:
34
src/components/Controls/FlashModesList/index.jsx
Normal file
34
src/components/Controls/FlashModesList/index.jsx
Normal file
@@ -0,0 +1,34 @@
|
||||
import React from "react";
|
||||
|
||||
import { Select } from "@material-ui/core";
|
||||
|
||||
const ManifestECUFlashModes = (props) => {
|
||||
const changeHandler = (e) => {
|
||||
if (!props.changeHandler) return;
|
||||
props.changeHandler(e);
|
||||
};
|
||||
|
||||
return (
|
||||
<Select
|
||||
id={props.id}
|
||||
native
|
||||
variant="outlined"
|
||||
value={props.value}
|
||||
onChange={changeHandler}
|
||||
>
|
||||
{FlashModeTypes.map((item, index) => (
|
||||
<option key={index} value={item[0]}>
|
||||
{item[1]}
|
||||
</option>
|
||||
))}
|
||||
</Select>
|
||||
);
|
||||
};
|
||||
|
||||
export default ManifestECUFlashModes;
|
||||
|
||||
const FlashModeTypes = [
|
||||
["A", "Mode A"],
|
||||
["D", "Mode D"],
|
||||
["SELF", "Self"],
|
||||
];
|
||||
Reference in New Issue
Block a user