diff --git a/client/src/components/Layout/MainLayout.scss b/client/src/components/Layout/MainLayout.scss
index 0972e129..cc05fcde 100644
--- a/client/src/components/Layout/MainLayout.scss
+++ b/client/src/components/Layout/MainLayout.scss
@@ -33,7 +33,6 @@ body {
}
header {
- display: flex;
background: -webkit-linear-gradient(
var(--header-gradient-1),
var(--header-gradient-2)
@@ -62,6 +61,15 @@ header {
color: var(--background);
}
+ .header-banner {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: 15px;
+ background-color: #f0e7c0;
+ padding: 10px;
+ }
+
nav {
flex-grow: 1;
display: flex;
diff --git a/client/src/components/Layout/MainLayout.tsx b/client/src/components/Layout/MainLayout.tsx
index e83acd38..1217761f 100644
--- a/client/src/components/Layout/MainLayout.tsx
+++ b/client/src/components/Layout/MainLayout.tsx
@@ -3,13 +3,24 @@ import { useContext, useState } from 'react';
import { useNavigate } from 'react-router-dom';
// client state
-import { ActionTypes } from 'stores/Global/reducers';
import { GlobalClientContext } from 'stores/Global/GlobalClient';
// style
import './MainLayout.scss';
-import { Box, Button, IconButton, Menu, MenuItem } from '@mui/material';
-import HighlightOffIcon from '@mui/icons-material/HighlightOff';
+import {
+ Box,
+ Button,
+ Dialog,
+ DialogActions,
+ DialogContent,
+ DialogContentText,
+ DialogTitle,
+ IconButton,
+ Link,
+ Menu,
+ MenuItem,
+} from '@mui/material';
+import CloseIcon from '@mui/icons-material/Close';
import ReleaseInformation from 'components/Shared/ReleaseInformation/ReleaseInformation';
type MainLayoutProps = {
@@ -18,6 +29,9 @@ type MainLayoutProps = {
const Header: React.FC = () => {
const [anchorEl, setAnchorEl] = useState(null);
+ const [hideBanner, setHideBanner] = useState(
+ window.localStorage.getItem('banner-closed')
+ );
const handleOpen = (event: any) => {
setAnchorEl(event.currentTarget);
@@ -27,87 +41,154 @@ const Header: React.FC = () => {
setAnchorEl(null);
};
+ const handleCloseNotificationBanner = () => {
+ setHideBanner('true');
+ window.localStorage.setItem('banner-closed', 'true');
+ };
+
const navigate = useNavigate();
return (