From 2306e9240cedad7444741a151444eeadd45ac7a0 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 12 Oct 2023 11:49:06 -0700 Subject: [PATCH] hide lw banner (#361) --- src/hooks/useGlobalBanners.tsx | 68 ++++++++++++---------------------- 1 file changed, 24 insertions(+), 44 deletions(-) diff --git a/src/hooks/useGlobalBanners.tsx b/src/hooks/useGlobalBanners.tsx index 3de5489e7..47b7402d7 100644 --- a/src/hooks/useGlobalBanners.tsx +++ b/src/hooks/useGlobalBanners.tsx @@ -10,28 +10,28 @@ export interface GlobalBanner { variant?: BannerVariant; } -const LaunchWeekBanner = ({ - linkText, - isFirstStop, - isLastStop, -}: { - linkText: string; - isFirstStop?: boolean; - isLastStop?: boolean; -}) => ( - <> - 🚅{" "} - - Launch Week 01 is now{" "} - {isFirstStop ? "boarding" : "in service"}.{" "} - {isFirstStop ? "First" : isLastStop ? "Last" : "Next"} stop:{" "} - - {linkText} - - ! - - -); +// const LaunchWeekBanner = ({ +// linkText, +// isFirstStop, +// isLastStop, +// }: { +// linkText: string; +// isFirstStop?: boolean; +// isLastStop?: boolean; +// }) => ( +// <> +// 🚅{" "} +// +// Launch Week 01 is now{" "} +// {isFirstStop ? "boarding" : "in service"}.{" "} +// {isFirstStop ? "First" : isLastStop ? "Last" : "Next"} stop:{" "} +// +// {linkText} +// +// ! +// +// +// ); const GLOBAL_BANNERS_KEY = "@railway/globalBanners"; const useGlobalBannersLocalStorage = () => @@ -42,29 +42,9 @@ const useGlobalBannersLocalStorage = () => export const allGlobalBanners: GlobalBanner[] = [ // Day 1 // { - // id: "launch-week-day-1", - // message: , + // id: "some-id", + // message: , // }, - // Day 2 - // { - // id: "launch-week-day-2", - // message: , - // }, - // Day 3 - // { - // id: "launch-week-day-3", - // message: , - // }, - // Day 4 - // { - // id: "launch-week-day-4", - // message: , - // }, - // Day 5 - { - id: "launch-week-day-5", - message: , - }, ]; export const useGlobalBanners = () => {