diff --git a/components/WarningHeader.module.css b/components/WarningHeader.module.css index aec6f52a..3b328615 100644 --- a/components/WarningHeader.module.css +++ b/components/WarningHeader.module.css @@ -6,6 +6,7 @@ text-align: center; opacity: 1; - max-height: 500px; /* just for smooth fade in purposes */ - transition: max-height 1000ms ease-in, padding 100ms ease-in; + /* The following are for a smooth fade in if there ever is a loading required for the warning, is not needed currently */ + /* max-height: 500px; + /* transition: max-height 1000ms ease-in, padding 100ms ease-in; */ } \ No newline at end of file diff --git a/components/WarningHeader.tsx b/components/WarningHeader.tsx index 752e376a..f4bf667c 100644 --- a/components/WarningHeader.tsx +++ b/components/WarningHeader.tsx @@ -1,11 +1,6 @@ -import { start } from "repl"; - import { parse } from "date-fns"; import { utcToZonedTime, zonedTimeToUtc } from "date-fns-tz"; -import { GetStaticProps } from "next"; -import React, { useState, useEffect } from "react"; - -import { getCurrentTerm } from "@/lib/events"; +import React from "react"; import warnings from "../content/warnings/warnings.json"; @@ -74,14 +69,9 @@ function getCurrentWarning(): Warning | null { export function WarningHeader() { const warning = getCurrentWarning(); - if (!warning || warning.message == "") { - return ( -
- ); - } - - return