From bc5d655ec50f21a7c4b2fd4106665dc627058995 Mon Sep 17 00:00:00 2001 From: Mat Date: Wed, 3 Apr 2024 11:50:38 -0400 Subject: [PATCH] Remove temporary hardfork banner --- components/HardforkBanner/HardforkBanner.tsx | 47 -------------------- layouts/Main/Main.tsx | 2 - 2 files changed, 49 deletions(-) delete mode 100644 components/HardforkBanner/HardforkBanner.tsx diff --git a/components/HardforkBanner/HardforkBanner.tsx b/components/HardforkBanner/HardforkBanner.tsx deleted file mode 100644 index bb299e4c..00000000 --- a/components/HardforkBanner/HardforkBanner.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import { Box, Flex, Link, Text } from "@/lib/ui"; -import { RightCaret } from "@/lib/ui/src/icons/RightCaret/RightCaret"; -import { format } from "date-fns"; - -const HARDFORK_DATE = new Date("2024-04-02T12:00:00Z"); - -export function HardforkBanner() { - if (new Date() > HARDFORK_DATE) { - return null; - } - - return ( - - - The hardfork is coming on  - - {format(HARDFORK_DATE, "MMMM do, h b")}. - - - - - Learn more  - - - - - - - ); -} diff --git a/layouts/Main/Main.tsx b/layouts/Main/Main.tsx index 08f4f041..0d8753bc 100644 --- a/layouts/Main/Main.tsx +++ b/layouts/Main/Main.tsx @@ -1,12 +1,10 @@ import { Flex, chakra } from "@/lib/ui"; import { Footer } from "../../components/Footer/Footer"; import { NavBar } from "../../components/NavBar/NavBar"; -import { HardforkBanner } from "@/components/HardforkBanner/HardforkBanner"; export function MainLayout({ children }: { children: React.ReactNode }) { return ( -