From 9b1a369f7e637471ad945642b3f90135e7d03d9d Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sun, 12 Dec 2021 20:45:05 -0600 Subject: Removed sidebar and attribution (sorry, I didn't want to) from login page --- modern/src/StartPage.js | 7 ++++--- modern/src/components/BottomMenu.js | 1 + modern/src/components/registration/LoginForm.js | 13 +++++-------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/modern/src/StartPage.js b/modern/src/StartPage.js index 1e204c2..91b93c7 100644 --- a/modern/src/StartPage.js +++ b/modern/src/StartPage.js @@ -18,7 +18,7 @@ const useStyles = makeStyles((theme) => ({ [theme.breakpoints.down('md')]: { width: theme.dimensions.sidebarWidthTablet, }, - [theme.breakpoints.down('xs')]: { + [theme.breakpoints.down('xl')]: { width: '0px', }, }, @@ -29,7 +29,7 @@ const useStyles = makeStyles((theme) => ({ alignItems: 'center', flex: 1, boxShadow: '-2px 0px 16px rgba(0, 0, 0, 0.25)', - [theme.breakpoints.up('lg')]: { + [theme.breakpoints.up('xl')]: { padding: theme.spacing(0, 25, 0, 0), }, }, @@ -43,6 +43,7 @@ const useStyles = makeStyles((theme) => ({ bottom: theme.spacing(1), right: theme.spacing(1.5), fontSize: 'x-small', + display: 'none', }, })); @@ -54,7 +55,7 @@ const StartPage = ({ children }) => { <>
- {!useMediaQuery(theme.breakpoints.down('md')) + {!useMediaQuery(theme.breakpoints.down('xl')) && ( diff --git a/modern/src/components/BottomMenu.js b/modern/src/components/BottomMenu.js index 7ce83e5..4d5d4ea 100644 --- a/modern/src/components/BottomMenu.js +++ b/modern/src/components/BottomMenu.js @@ -50,6 +50,7 @@ const BottomMenu = () => { await fetch('/api/session', { method: 'DELETE' }); history.push('/login'); dispatch(sessionActions.updateUser(null)); + window.location.reload(); break; default: break; diff --git a/modern/src/components/registration/LoginForm.js b/modern/src/components/registration/LoginForm.js index bbb5d5f..20d36bc 100644 --- a/modern/src/components/registration/LoginForm.js +++ b/modern/src/components/registration/LoginForm.js @@ -63,14 +63,11 @@ const LoginForm = () => { return ( - {useMediaQuery(theme.breakpoints.down('md')) - && ( - - - - - - )} + + + + +