2022-12-15 15:07:22 +01:00
|
|
|
import { styled } from '@mui/material';
|
|
|
|
import { ErrorOutlineRounded } from '@mui/icons-material';
|
|
|
|
|
|
|
|
const StyledErrorRoundedIcon = styled(ErrorOutlineRounded)(({ theme }) => ({
|
2023-03-22 15:37:40 +01:00
|
|
|
color: theme.palette.error.main,
|
2022-12-15 15:07:22 +01:00
|
|
|
height: '20px',
|
|
|
|
width: '20px',
|
|
|
|
marginRight: theme.spacing(1),
|
|
|
|
}));
|
|
|
|
|
|
|
|
const StyledDiv = styled('div')(({ theme }) => ({
|
|
|
|
display: 'flex',
|
|
|
|
fontSize: theme.fontSizes.smallBody,
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
2023-03-22 15:37:40 +01:00
|
|
|
color: theme.palette.error.contrastText,
|
2022-12-15 15:07:22 +01:00
|
|
|
backgroundColor: theme.palette.error.light,
|
|
|
|
height: '65px',
|
|
|
|
borderBottom: `1px solid ${theme.palette.error.border}`,
|
|
|
|
whiteSpace: 'pre-wrap',
|
|
|
|
}));
|
|
|
|
|
2022-12-21 12:23:44 +01:00
|
|
|
const MaintenanceBanner = () => {
|
2022-12-15 15:07:22 +01:00
|
|
|
return (
|
|
|
|
<StyledDiv>
|
|
|
|
<StyledErrorRoundedIcon />
|
|
|
|
<b>Maintenance Mode! </b>
|
|
|
|
<p>
|
2022-12-19 08:01:04 +01:00
|
|
|
During maintenance mode, any changes made will not be saved and
|
|
|
|
you may receive an error. We apologize for any inconvenience
|
|
|
|
this may cause.
|
2022-12-15 15:07:22 +01:00
|
|
|
</p>
|
|
|
|
</StyledDiv>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2022-12-21 12:23:44 +01:00
|
|
|
export default MaintenanceBanner;
|