fix: fixed login page refresh bug
Signed-off-by: Raul-Cristian Kele <raulkeleblk@gmail.com>
This commit is contained in:
parent
8086f6880d
commit
44289c751f
@ -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);
|
||||
|
@ -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's Privacy Policy.
|
||||
</Typography>
|
||||
<Typography variant="caption" className={classes.text} align="center" {...props}>
|
||||
Privacy Policy | Terms of Service
|
||||
</Typography>
|
||||
</Stack>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user