Skip to content

Commit

Permalink
feat(nav): Add home link to top of side navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
harshitg927 committed Jan 13, 2025
1 parent c3789f2 commit 2bc4671
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/components/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,15 @@ function OEHeader(props) {
isPersistent={false}
>
<SideNavItems>
{/* Adding the home link at the top in the side navigation bar */}
<SideNavMenuItem
href="/"
className="top-level-menu-item"
>
<FormattedMessage id="banner.menu.home" />
</SideNavMenuItem>

{/* Adding other links after the home in the side navigation bar */}
{menus["menu"].map((childMenuItem, index) => {
// ignore the Home Menu in the new UI
if (childMenuItem.menu.elementId != "menu_home") {
Expand Down

0 comments on commit 2bc4671

Please sign in to comment.