From a53c43c5a31aa9964cba358addfbffa664de9477 Mon Sep 17 00:00:00 2001 From: Nicholas Lee Date: Wed, 20 Nov 2024 11:50:22 -0500 Subject: [PATCH] maint: updated banner with new tonwhall link (#855) * maint: updated banner with new tonwhall link * fix: update hover color --- compose/neurosynth-frontend/src/App.tsx | 4 ++-- .../src/components/Downbanner.tsx | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/compose/neurosynth-frontend/src/App.tsx b/compose/neurosynth-frontend/src/App.tsx index 7d791c8c..648491e8 100644 --- a/compose/neurosynth-frontend/src/App.tsx +++ b/compose/neurosynth-frontend/src/App.tsx @@ -9,7 +9,7 @@ import Navbar from "components/Navbar/Navbar"; import useGetToken from "./hooks/useGetToken"; import BaseNavigation from "pages/BaseNavigation/BaseNavigation"; import { useLocation } from "react-router-dom"; -import Downbanner from "components/Downbanner"; +import Banner from "components/Downbanner"; const queryClient = new QueryClient({ defaultOptions: { @@ -71,7 +71,7 @@ function App() { )} > - + diff --git a/compose/neurosynth-frontend/src/components/Downbanner.tsx b/compose/neurosynth-frontend/src/components/Downbanner.tsx index 078de858..b84a51c6 100644 --- a/compose/neurosynth-frontend/src/components/Downbanner.tsx +++ b/compose/neurosynth-frontend/src/components/Downbanner.tsx @@ -4,10 +4,10 @@ import { Box, IconButton, Link } from "@mui/material"; import BaseNavigationStyles from "pages/BaseNavigation/BaseNavigation.styles"; import { useState } from "react"; -const localStorageDownBannerKey = "hide-downbanner-nov-6-2024"; +const localStorageBannerKey = "hide-banner-nov-20-2024"; -const Downbanner: React.FC = () => { - const shouldHide = !!localStorage.getItem(localStorageDownBannerKey); +const Banner: React.FC = () => { + const shouldHide = !!localStorage.getItem(localStorageBannerKey); const [hideBanner, setHideBanner] = useState(shouldHide); if (hideBanner) return <>; @@ -34,12 +34,12 @@ const Downbanner: React.FC = () => { > - Join us next Wednesday, November 13th at 19:00 ET for the inaugural + Join us next Wednesday, December 4th 2024 at 10:00 ET for the Neurosynth Compose Virtual Town Hall!{" "} Click here to register @@ -47,12 +47,12 @@ const Downbanner: React.FC = () => { { - localStorage.setItem(localStorageDownBannerKey, "true"); + localStorage.setItem(localStorageBannerKey, "true"); setHideBanner(true); }} sx={{ padding: 0, - ":hover": { backgroundColor: "secondary.light" }, + ":hover": { backgroundColor: "gray" }, }} > @@ -62,4 +62,4 @@ const Downbanner: React.FC = () => { ); }; -export default Downbanner; +export default Banner;