Skip to content

Commit

Permalink
hide lw banner (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanys authored Oct 12, 2023
1 parent 08168c4 commit 2306e92
Showing 1 changed file with 24 additions and 44 deletions.
68 changes: 24 additions & 44 deletions src/hooks/useGlobalBanners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ export interface GlobalBanner {
variant?: BannerVariant;
}

const LaunchWeekBanner = ({
linkText,
isFirstStop,
isLastStop,
}: {
linkText: string;
isFirstStop?: boolean;
isLastStop?: boolean;
}) => (
<>
<span role="img">🚅</span>{" "}
<span>
<strong>Launch Week 01</strong> is now{" "}
{isFirstStop ? "boarding" : "in service"}.{" "}
{isFirstStop ? "First" : isLastStop ? "Last" : "Next"} stop:{" "}
<Link href="https://railway.app/launch-week-01" tw="underline">
{linkText}
</Link>
!
</span>
</>
);
// const LaunchWeekBanner = ({
// linkText,
// isFirstStop,
// isLastStop,
// }: {
// linkText: string;
// isFirstStop?: boolean;
// isLastStop?: boolean;
// }) => (
// <>
// <span role="img">🚅</span>{" "}
// <span>
// <strong>Launch Week 01</strong> is now{" "}
// {isFirstStop ? "boarding" : "in service"}.{" "}
// {isFirstStop ? "First" : isLastStop ? "Last" : "Next"} stop:{" "}
// <Link href="https://railway.app/launch-week-01" tw="underline">
// {linkText}
// </Link>
// !
// </span>
// </>
// );

const GLOBAL_BANNERS_KEY = "@railway/globalBanners";
const useGlobalBannersLocalStorage = () =>
Expand All @@ -42,29 +42,9 @@ const useGlobalBannersLocalStorage = () =>
export const allGlobalBanners: GlobalBanner[] = [
// Day 1
// {
// id: "launch-week-day-1",
// message: <LaunchWeekBanner linkText="Regions" isFirstStop />,
// id: "some-id",
// message: <LaunchWeekBanner linkText="Feature" isFirstStop />,
// },
// Day 2
// {
// id: "launch-week-day-2",
// message: <LaunchWeekBanner linkText="Next-Gen Databases" />,
// },
// Day 3
// {
// id: "launch-week-day-3",
// message: <LaunchWeekBanner linkText="Horizontal Scaling" />,
// },
// Day 4
// {
// id: "launch-week-day-4",
// message: <LaunchWeekBanner linkText="Changesets" />,
// },
// Day 5
{
id: "launch-week-day-5",
message: <LaunchWeekBanner linkText="Workflows" isLastStop />,
},
];

export const useGlobalBanners = () => {
Expand Down

0 comments on commit 2306e92

Please sign in to comment.