Skip to content

Commit

Permalink
make TopNavBar active
Browse files Browse the repository at this point in the history
  • Loading branch information
will0684 committed Jun 27, 2024
1 parent ba12279 commit 0e84074
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions components/organisms/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ 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 @@ -110,18 +108,16 @@ export const Layout = ({
</div>
</div>
<div className="border-b-[3px] border-multi-blue-blue35" />
{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}
<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")}
/>
<div className="layout-container mt-4">
<Breadcrumb items={breadcrumbItems} />
</div>
Expand Down

0 comments on commit 0e84074

Please sign in to comment.