Development (#67)

* preliminary map for vehicles

* weird zoom bug

* passing react tests

* fixing warnings and updating snapshots

* update node environment to 14

* addressing comments by changing variable types and adding styles to home page title

* adding CODEOWNERS file

* fixing token error
This commit is contained in:
Drew Taylor
2021-08-03 16:34:37 -07:00
committed by GitHub
parent df50ef79b9
commit 0f377d5467
31 changed files with 1120 additions and 508 deletions

View File

@@ -5,6 +5,7 @@ import useStyles from "../useStyles";
import { useUserContext } from "../Contexts/UserContext";
import { useStatusContext } from "../Contexts/StatusContext";
import { parsePayload } from "../../utils/jwt";
import VehicleMap from "../VehicleMap";
const DEFAULT_GREETING = "Welcome";
@@ -25,16 +26,18 @@ const Home = () => {
const greeting = getGreeting(token);
const { setTitle } = useStatusContext();
useEffect(() => {
setTitle("");
setTitle("Home");
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return (
<div className={classes.paper}>
<Typography component="h1" variant="h5">
<Typography className={classes.homePageTitle} component="h1" variant="h5">
{greeting}
</Typography>
<VehicleMap />
</div>
);
};