[INFRA-421] | Anoop | Fix indendation

This commit is contained in:
anoop narang
2020-07-23 03:51:54 +05:30
parent b42ec431a1
commit 22cea5d5b0

View File

@@ -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 (
<div style={{ display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", height: "100vh", backgroundColor: "lightgrey" }} >
@@ -30,13 +24,13 @@ const Dashboard = (props) => {
</>
) : ( */}
{/* <Typography variant="h3" style={{ marginBottom: "10vh", color: "#F8F8F8", letterSpacing: "0.1rem" }}> DEPLOYMENT PORTAL</Typography> */}
<Paper style={{ backgroundColor: "grey", width: "30vw", height: "25vh" }} elevation={2}>
<div style={{ display: "flex", alignItems: "center", justifyContent: "space-around", flexDirection: "column", height: "inherit" }} >
<Avatar src="/public/medici-logo.png" style={{ height: "8vh", width: "6vw"}} variant="square"/>
<Button variant="contained" size="large" style={{ backgroundColor: "#F8F8F8"}} onClick={handleLogin}>Login via Okta</Button>
</div>
</Paper>
{/* )} */}
<Paper style={{ backgroundColor: "grey", width: "30vw", height: "25vh" }} elevation={2}>
<div style={{ display: "flex", alignItems: "center", justifyContent: "space-around", flexDirection: "column", height: "inherit" }} >
<Avatar src="/public/medici-logo.png" style={{ height: "8vh", width: "6vw" }} variant="square" />
<Button variant="contained" size="large" style={{ backgroundColor: "#F8F8F8" }} onClick={handleLogin}>Login via Okta</Button>
</div>
</Paper>
{/* )} */}
</div>
);