Skip to content

Commit

Permalink
[MAINT] 812 add down banner (#814)
Browse files Browse the repository at this point in the history
* feat: add downbanner

* fix: remove unused import

* maint: change downbanner date
  • Loading branch information
nicoalee authored Sep 9, 2024
1 parent 03aeb60 commit 809c9a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compose/neurosynth-frontend/src/components/Downbanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import BaseNavigationStyles from 'pages/BaseNavigation/BaseNavigation.styles';
import { useState } from 'react';

const Downbanner: React.FC = () => {
const shouldHide = !!localStorage.getItem('hide-dwonbanner');
const shouldHide = !!localStorage.getItem('hide-downbanner-sep-13-2024');
const [hideBanner, setHideBanner] = useState(shouldHide);

if (hideBanner) return <></>;
Expand Down Expand Up @@ -33,11 +33,11 @@ const Downbanner: React.FC = () => {
<Box display="flex" alignItems="center">
<ErrorOutlineIcon sx={{ mr: '1rem' }} />
Neurosynth-compose will be undergoing planned maintenance and will be offline on
friday (Sep/06/2024)
friday (Sep/13/2024)
</Box>
<IconButton
onClick={() => {
localStorage.setItem('hide-dwonbanner', 'true');
localStorage.setItem('hide-downbanner-sep-13-2024', 'true');
setHideBanner(true);
}}
sx={{ padding: 0, ':hover': { backgroundColor: 'secondary.light' } }}
Expand Down

0 comments on commit 809c9a0

Please sign in to comment.