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:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user