1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/frontend/src/component/maintenance/MaintenanceBanner.tsx

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2022-12-15 15:07:22 +01:00
import { styled } from '@mui/material';
import { ErrorOutlineRounded } from '@mui/icons-material';
const StyledErrorRoundedIcon = styled(ErrorOutlineRounded)(({ theme }) => ({
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',
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;