CEC-227, CEC-244 Add dashboard page, update car command control (#46)
* Create multiselect car table control Remove table overflow containers * Include trim to add car form * CEC-252 Replace modal status with link to car details page * Remove send command from car status page Fix menu key warning * Change car command control data Add Grafana menu items * Revert
This commit is contained in:
28
src/components/Dashboard/index.jsx
Normal file
28
src/components/Dashboard/index.jsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import React, { useEffect } from "react";
|
||||
import useStyles from "../useStyles";
|
||||
|
||||
import { useStatusContext } from "../Contexts/StatusContext";
|
||||
|
||||
const Dashboard = () => {
|
||||
const classes = useStyles();
|
||||
const { setTitle } = useStatusContext();
|
||||
|
||||
useEffect(() => {
|
||||
setTitle("Dashboard");
|
||||
// eslint-disable-next-line
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className={classes.paper}>
|
||||
<iframe
|
||||
title="Vehicle Signals"
|
||||
src="https://grafana.fiskerdps.com/d-solo/YZaAlIeGz/vehicle-signals?orgId=1&refresh=30s&from=1622594368093&to=1622597968093&panelId=2"
|
||||
width="900"
|
||||
height="400"
|
||||
frameBorder="0"
|
||||
></iframe>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Dashboard;
|
||||
Reference in New Issue
Block a user