From 7f8ded5a36d317d9273ac7a8aed0b01a1f35e603 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Tue, 21 Apr 2020 06:56:43 +0200 Subject: [PATCH] remove form on signin component. --- client/src/components/SignInSide.tsx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/client/src/components/SignInSide.tsx b/client/src/components/SignInSide.tsx index bb58e38..b117cec 100644 --- a/client/src/components/SignInSide.tsx +++ b/client/src/components/SignInSide.tsx @@ -11,11 +11,12 @@ import Grid from "@material-ui/core/Grid"; import LockOutlinedIcon from "@material-ui/icons/LockOutlined"; import Typography from "@material-ui/core/Typography"; import { makeStyles, createStyles, Theme } from "@material-ui/core/styles"; +import { useAuth0 } from "../authentication/auth0"; const useStyles = makeStyles((theme: Theme) => createStyles({ root: { - height: "100vh" + height: "100vh", }, image: { backgroundImage: "url(https://source.unsplash.com/daily?dev)", @@ -25,31 +26,31 @@ const useStyles = makeStyles((theme: Theme) => ? theme.palette.grey[50] : theme.palette.grey[900], backgroundSize: "cover", - backgroundPosition: "center" + backgroundPosition: "center", }, paper: { margin: theme.spacing(8, 4), display: "flex", flexDirection: "column", - alignItems: "center" + alignItems: "center", }, avatar: { margin: theme.spacing(1), - backgroundColor: theme.palette.secondary.main + backgroundColor: theme.palette.secondary.main, }, form: { width: "100%", - marginTop: theme.spacing(1) + marginTop: theme.spacing(1), }, submit: { - margin: theme.spacing(3, 0, 2) - } + margin: theme.spacing(3, 0, 2), + }, }) ); export default function SignInSide() { const classes = useStyles(); - + const { isAuthenticated, loginWithRedirect, logout } = useAuth0(); return ( @@ -63,7 +64,7 @@ export default function SignInSide() { Sign in
- } label="Remember me" - /> + /> */} - + {/* Forgot password? @@ -109,7 +111,7 @@ export default function SignInSide() { {"Don't have an account? Sign Up"} - + */}