Skip to content

Commit

Permalink
feat: remove old dgidb link
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed Jun 4, 2024
1 parent 1e0bf5e commit 2c803f1
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions client/src/components/Layout/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
DialogTitle,
Drawer,
IconButton,
Link,
List,
ListItem,
ListItemButton,
Expand All @@ -41,9 +40,6 @@ type MainLayoutProps = {

const Header: React.FC = () => {
const [anchorEl, setAnchorEl] = useState(null);
const [hideBanner, setHideBanner] = useState(
window.localStorage.getItem('banner-closed')
);
const [showMenuDrawer, setShowMenuDrawer] = useState(false);

const handleOpen = (event: any) => {
Expand All @@ -54,11 +50,6 @@ const Header: React.FC = () => {
setAnchorEl(null);
};

const handleCloseNotificationBanner = () => {
setHideBanner('true');
window.localStorage.setItem('banner-closed', 'true');
};

const navigate = useNavigate();
const isMobile = useGetIsMobile();

Expand Down Expand Up @@ -169,26 +160,6 @@ const Header: React.FC = () => {
</div>
{isMobile ? mobileNavMenu : desktopNavMenu}
</Box>
{!hideBanner ? (
<Box className="header-banner">
<Box>
The previous version of DGIdb can be found at{' '}
<Link href="https://old.dgidb.org" color="inherit">
old.dgidb.org
</Link>{' '}
until June 1st, 2024.
</Box>
<IconButton
aria-label="close"
size="small"
onClick={handleCloseNotificationBanner}
>
<CloseIcon fontSize="inherit" />
</IconButton>
</Box>
) : (
''
)}
</header>
);
};
Expand Down

0 comments on commit 2c803f1

Please sign in to comment.