+ Welcome to WOAQ!
+
+ West Oakland Air Quality supports the West Oakland Environmental
+ Indicators Project by putting local air quality in the hands of West
+ Oaklanders.
+
+
+ );
+}
diff --git a/web/src/components/map/box.js b/web/src/components/map/box.js
index 45b6c626..bca86ffc 100644
--- a/web/src/components/map/box.js
+++ b/web/src/components/map/box.js
@@ -9,7 +9,8 @@ import "mapbox-gl/dist/mapbox-gl.css";
// Hack: https://github.com/mapbox/mapbox-gl-js/issues/10173#issuecomment-753662795
import mapboxgl from "mapbox-gl";
/* eslint-disable import/no-webpack-loader-syntax */
-mapboxgl.workerClass = require("worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker").default;
+mapboxgl.workerClass =
+ require("worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker").default;
/* eslint-enable import/no-webpack-loader-syntax */
export const PM25_CATEGORY_COLORS = {
diff --git a/web/src/components/nav/bar.js b/web/src/components/nav/bar.js
index 34cb9216..eb6d04eb 100644
--- a/web/src/components/nav/bar.js
+++ b/web/src/components/nav/bar.js
@@ -1,7 +1,17 @@
+import { useContext, useEffect, useState } from "react";
import { Link, NavLink, withRouter } from "react-router-dom";
+import { AuthTokenContext } from "../auth/tokenContext";
import { Container, Menu } from "../ui";
const Navbar = () => {
+ const { authToken, isTokenLoading } = useContext(AuthTokenContext);
+ const [links, setLinks] = useState([]);
+ // Wait to return navigation links until token finishes loading
+ useEffect(
+ () => setLinks(isTokenLoading ? [] : activeHeaderLinks(authToken)),
+ [isTokenLoading, authToken]
+ );
+
return (