From 68f3d28bca7ebf93409e99a180909cdcf83fb8cb Mon Sep 17 00:00:00 2001 From: Nicholas Lee Date: Wed, 20 Nov 2024 11:54:09 -0500 Subject: [PATCH] Maint 853 update baner with new townhall link (#856) * maint: updated banner with new tonwhall link * fix: update hover color * chore: linting --- .../src/components/Downbanner.tsx | 111 +++++++++--------- 1 file changed, 55 insertions(+), 56 deletions(-) diff --git a/compose/neurosynth-frontend/src/components/Downbanner.tsx b/compose/neurosynth-frontend/src/components/Downbanner.tsx index b84a51c6..9d13cb76 100644 --- a/compose/neurosynth-frontend/src/components/Downbanner.tsx +++ b/compose/neurosynth-frontend/src/components/Downbanner.tsx @@ -1,65 +1,64 @@ -import { Cancel } from "@mui/icons-material"; -import EmojiPeopleIcon from "@mui/icons-material/EmojiPeople"; -import { Box, IconButton, Link } from "@mui/material"; -import BaseNavigationStyles from "pages/BaseNavigation/BaseNavigation.styles"; -import { useState } from "react"; +import { Cancel } from '@mui/icons-material'; +import EmojiPeopleIcon from '@mui/icons-material/EmojiPeople'; +import { Box, IconButton, Link } from '@mui/material'; +import BaseNavigationStyles from 'pages/BaseNavigation/BaseNavigation.styles'; +import { useState } from 'react'; -const localStorageBannerKey = "hide-banner-nov-20-2024"; +const localStorageBannerKey = 'hide-banner-nov-20-2024'; const Banner: React.FC = () => { - const shouldHide = !!localStorage.getItem(localStorageBannerKey); - const [hideBanner, setHideBanner] = useState(shouldHide); + const shouldHide = !!localStorage.getItem(localStorageBannerKey); + const [hideBanner, setHideBanner] = useState(shouldHide); - if (hideBanner) return <>; + if (hideBanner) return <>; - return ( - - - - - Join us next Wednesday, December 4th 2024 at 10:00 ET for the - Neurosynth Compose Virtual Town Hall!{" "} - - Click here to register - - - { - localStorage.setItem(localStorageBannerKey, "true"); - setHideBanner(true); - }} - sx={{ - padding: 0, - ":hover": { backgroundColor: "gray" }, - }} + return ( + - - - - - ); + + + + Join us next Wednesday, December 4th 2024 at 10:00 ET for the Neurosynth Compose Virtual Town Hall!{' '} + + Click here to register + + + { + localStorage.setItem(localStorageBannerKey, 'true'); + setHideBanner(true); + }} + sx={{ + padding: 0, + ':hover': { backgroundColor: 'gray' }, + }} + > + + + + + ); }; export default Banner;