From acf9ca6c9340120705304e35fd6a6faa2d434e28 Mon Sep 17 00:00:00 2001 From: Ida Marie Andreassen Date: Fri, 6 Dec 2024 14:40:04 +0100 Subject: [PATCH] Remove announcement banner for first launch --- src/components/navigation/header/Header.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/navigation/header/Header.tsx b/src/components/navigation/header/Header.tsx index 5909c7454..6e33c0d3a 100644 --- a/src/components/navigation/header/Header.tsx +++ b/src/components/navigation/header/Header.tsx @@ -26,7 +26,7 @@ import styles from "./header.module.css"; export interface IHeader { navigation: Navigation; assets: BrandAssets; - announcement: Announcement | null; + announcement?: Announcement | null; currentLanguage: string; pathTranslations: InternationalizedString; } @@ -36,7 +36,7 @@ const filterLinks = (data: ILink[], type: string) => export const Header = ({ navigation, - announcement, + /* announcement, */ currentLanguage, pathTranslations, }: IHeader) => { @@ -73,11 +73,11 @@ export const Header = ({ }; }, []); - const showAnnouncement = + /* const showAnnouncement = announcement !== null && announcement.text?.length > 0 && (!announcement.hideAfter || new Date(announcement.hideAfter) > new Date()); - + */ const t = useTranslations("contact_information"); return ( @@ -139,7 +139,7 @@ export const Header = ({ )} - {showAnnouncement && ( + {/* {showAnnouncement && (
{announcement.text} @@ -154,7 +154,7 @@ export const Header = ({ )}
- )} + )} */} );