diff --git a/src/components/Dashboard.tsx b/src/components/Dashboard.tsx index 2e62309..91b555d 100644 --- a/src/components/Dashboard.tsx +++ b/src/components/Dashboard.tsx @@ -1,21 +1,15 @@ -import React, { useEffect, useContext } from "react"; +import React, { useContext } from "react"; import { withCookies } from "react-cookie"; import { store } from "../store/store"; -import { Paper, Button, Avatar, Typography } from "@material-ui/core"; +import { Paper, Button, Avatar } from "@material-ui/core"; -import MenuAppBar from "./layout/Header"; -import { colors } from "material-ui/styles"; -import Typography from "material-ui/styles/typography"; - -const handleLogin = () => { - window.location.href = "/login/okta"; - dispatch({ type: "setAuthentication", value: true }); -}; - -const Dashboard = (props) => { +const Dashboard = () => { const { state, dispatch } = useContext(store); - const isAuthenticated = state.isAuthenticated; - const userInfo = state.userInfo; + + const handleLogin = () => { + window.location.href = "/login/okta"; + dispatch({ type: "setAuthentication", value: true }); + }; return (
@@ -30,13 +24,13 @@ const Dashboard = (props) => { ) : ( */} {/* DEPLOYMENT PORTAL */} - -
- - -
-
- {/* )} */} + +
+ + +
+
+ {/* )} */}
);