Skip to content

Commit

Permalink
deactivate TopNavBar (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
will0684 authored Jun 26, 2024
1 parent ca6ed89 commit 9c4fd58
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions components/organisms/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const Layout = ({
? window.location.href
: "";

const isTopNavBarActive = false;

return (
<div className="overflow-x-hidden">
<nav className="skip-main" aria-label={t("skipToMainContentBtn")}>
Expand Down Expand Up @@ -108,16 +110,18 @@ export const Layout = ({
</div>
</div>
<div className="border-b-[3px] border-multi-blue-blue35" />
<TopNavBar
homeLink={t("topNavBar.homeLink")}
homeLinkLabel={t("topNavBar.homeLinkLabel")}
updatesLink={t("topNavBar.updatesLink")}
updatesLinkLabel={t("topNavBar.updatesLinkLabel")}
projectsLink={t("topNavBar.projectsLink")}
projectsLinkLabel={t("topNavBar.projectsLinkLabel")}
navAriaLabel={t("topNavBar.ariaLabel")}
buttonAriaLabel={t("topNavBar.buttonAriaLabel")}
/>
{isTopNavBarActive ? (
<TopNavBar
homeLink={t("topNavBar.homeLink")}
homeLinkLabel={t("topNavBar.homeLinkLabel")}
updatesLink={t("topNavBar.updatesLink")}
updatesLinkLabel={t("topNavBar.updatesLinkLabel")}
projectsLink={t("topNavBar.projectsLink")}
projectsLinkLabel={t("topNavBar.projectsLinkLabel")}
navAriaLabel={t("topNavBar.ariaLabel")}
buttonAriaLabel={t("topNavBar.buttonAriaLabel")}
/>
) : null}
<div className="layout-container mt-4">
<Breadcrumb items={breadcrumbItems} />
</div>
Expand Down

0 comments on commit 9c4fd58

Please sign in to comment.