1 Commits

Author SHA1 Message Date
44289c751f fix: fixed login page refresh bug
Signed-off-by: Raul-Cristian Kele <raulkeleblk@gmail.com>
2023-07-19 17:44:44 +03:00
2 changed files with 1 additions and 37 deletions

View File

@ -19,6 +19,7 @@ axios.interceptors.response.use(
},
(error) => {
if (error?.response?.status === 401) {
if (window.location.pathname.includes('/login')) return Promise.reject(error);
logoutUser();
window.location.replace('/login');
return Promise.reject(error);

View File

@ -1,37 +0,0 @@
import React from 'react';
import { makeStyles } from '@mui/styles';
import { Stack, Typography } from '@mui/material';
const useStyles = makeStyles(() => ({
subtext: {
color: '#52637A',
fontSize: '0.8125rem',
fontWeight: '400',
lineHeight: '154%',
letterSpacing: '0.025rem',
marginBottom: '0'
},
text: {
color: '#0F2139',
fontSize: '0.8125rem',
lineHeight: '154%',
fontWeight: '600',
letterSpacing: '0.025rem'
}
}));
export default function TermsOfService(props) {
const classes = useStyles();
return (
<Stack spacing={0}>
<Typography variant="caption" className={classes.subtext} align="justify" {...props} pb={6}>
By using zot UI, you agree to the Terms of Service. For more information about our privacy practices, see
zot&apos;s Privacy Policy.
</Typography>
<Typography variant="caption" className={classes.text} align="center" {...props}>
Privacy Policy | Terms of Service
</Typography>
</Stack>
);
}