@@ -32,12 +59,7 @@ const Header = (): JSX.Element => {
Protected
-
- Login
-
-
- Signup
-
+ {generateNavLinks()}
);
diff --git a/src/components/Header/header.styles.css b/src/components/Header/header.styles.css
index 813728e..c4cf0b6 100644
--- a/src/components/Header/header.styles.css
+++ b/src/components/Header/header.styles.css
@@ -19,3 +19,16 @@
.signup {
margin-right: 40px;
}
+
+.right > a {
+ color: white;
+ text-decoration: underline;
+}
+
+.right > a:visited{
+ color: white;
+}
+
+.right > a:hover{
+ cursor: pointer;
+}
diff --git a/src/components/Login/Login.tsx b/src/components/Login/Login.tsx
index b8c4a13..a02f17c 100644
--- a/src/components/Login/Login.tsx
+++ b/src/components/Login/Login.tsx
@@ -7,6 +7,7 @@ import React, {
import { useAuth } from "../../context/AuthProvider";
import type User from "../../types/User";
import './Login.css'
+import { useHistory } from "react-router-dom";
import {
LoginForm,
@@ -22,6 +23,7 @@ const Login = () => {
const [form, setForm] = useState(formState);
const auth = useAuth();
+ const history = useHistory();
const handleChange = (event: ChangeEvent