removed greeting and fixed grafana mock

This commit is contained in:
Drew Taylor
2021-08-10 15:52:10 -07:00
parent e50eb886e6
commit 378e58a310
5 changed files with 29 additions and 45 deletions

View File

@@ -1,15 +1,11 @@
import React, { useEffect } from "react";
import { Typography } from "@material-ui/core";
import useStyles from "../useStyles";
import { useUserContext } from "../Contexts/UserContext";
import { useStatusContext } from "../Contexts/StatusContext";
import VehicleMap from "../VehicleMap";
import { getName } from "../../utils/jwt";
const Home = () => {
const classes = useStyles();
const { token } = useUserContext();
const { setTitle, setSitePath } = useStatusContext();
useEffect(() => {
@@ -20,9 +16,6 @@ const Home = () => {
return (
<div className={classes.paper}>
<Typography className={classes.homePageTitle} component="h1" variant="h5">
Welcome {getName(token)}!
</Typography>
<VehicleMap />
</div>
);