Skip to content

Commit

Permalink
v3 - Remove announcement banner for first launch (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
idamand authored Dec 9, 2024
1 parent 32f60be commit 6835688
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/navigation/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import styles from "./header.module.css";
export interface IHeader {
navigation: Navigation;
assets: BrandAssets;
announcement: Announcement | null;
announcement?: Announcement | null;
currentLanguage: string;
pathTranslations: InternationalizedString;
contactEmail: string | undefined;
Expand All @@ -36,7 +36,7 @@ const filterLinks = (data: ILink[], type: string) =>

export const Header = ({
navigation,
announcement,
/* announcement, */
currentLanguage,
pathTranslations,
contactEmail,
Expand Down Expand Up @@ -74,11 +74,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 (
Expand Down Expand Up @@ -156,7 +156,7 @@ export const Header = ({
)}
</div>
</nav>
{showAnnouncement && (
{/* {showAnnouncement && (
<div className={styles.announcementWrapper}>
<div className={styles.announcementContent}>
<Text type={"bodySmall"}>{announcement.text}</Text>
Expand All @@ -171,7 +171,7 @@ export const Header = ({
)}
</div>
</div>
)}
)} */}
</FocusOn>
</>
);
Expand Down

0 comments on commit 6835688

Please sign in to comment.