aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2020-11-14 19:34:48 -0500
committerGalen Guyer <galen@galenguyer.com>2020-11-14 19:34:48 -0500
commit89a4e929a9b97867f9ed8f57b41a0a661ad34d0b (patch)
treeb566d1802e855bbe91d58ced9ffabd069a14dad6
parentfe81f26ee38b17ec490e9d04e1074bafbb6a1165 (diff)
make the main title a link to the homepage
-rw-r--r--src/App.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/App.js b/src/App.js
index 5c72ad4..e85330d 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,6 +1,6 @@
import useSWR from "swr";
import { DateTime } from "luxon";
-import { BrowserRouter, Route, Switch } from "react-router-dom";
+import { BrowserRouter, Route, Switch, Link } from "react-router-dom";
import MainPage from "./MainPage";
import History from "./History";
import "./App.css";
@@ -33,7 +33,7 @@ function App() {
return (
<BrowserRouter>
<div className="App">
- <h1 className="text-4xl">RIT Covid Dashboard</h1>
+ <h1 className="text-4xl"><Link to="/">RIT Covid Dashboard</Link></h1>
<h3>
Last Updated:{" "}
{lastUpdate.toLocaleString({