CEC-2291 Remote Commands (#194)
This commit is contained in:
26
src/components/Cars/Status/RemoteCommandsTab.jsx
Normal file
26
src/components/Cars/Status/RemoteCommandsTab.jsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import useStyles from "../../useStyles";
|
||||
import clsx from "clsx";
|
||||
import Typography from "@material-ui/core/Typography";
|
||||
import SendCommand from "../../Controls/SendCommand";
|
||||
import PropTypes from "prop-types";
|
||||
import {VehicleProvider} from "../../Contexts/VehicleContext";
|
||||
|
||||
const RemoteCommandsTab = (props) => {
|
||||
const { vin } = props;
|
||||
const classes = useStyles();
|
||||
|
||||
return (
|
||||
<div className={clsx(classes.paper, classes.tableSize)}>
|
||||
<Typography variant="h6">Vehicle Commands</Typography>
|
||||
<VehicleProvider>
|
||||
<SendCommand vins={[vin]}></SendCommand>
|
||||
</VehicleProvider>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
RemoteCommandsTab.propTypes = {
|
||||
vin: PropTypes.string,
|
||||
}
|
||||
|
||||
export default RemoteCommandsTab
|
||||
Reference in New Issue
Block a user