Skip to content

Commit

Permalink
Enabled Navbar to automatically close on navigation (thanos-io#6656)
Browse files Browse the repository at this point in the history
* Enabled Navbar to automatically close on navigation

Signed-off-by: Vanshika <[email protected]>

* Rebuild

Signed-off-by: Vanshika <[email protected]>

---------

Signed-off-by: Vanshika <[email protected]>
  • Loading branch information
Vanshikav123 authored and coleenquadros committed Oct 6, 2023
1 parent 806b952 commit 9e08c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ui/react-app/src/thanos/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const Navigation: FC<PathPrefixProps & NavigationProps> = ({ pathPrefix, thanosC
if ('uri' in config)
return (
<NavItem key={config.uri}>
<NavLink tag={Link} to={`${pathPrefix}${config.uri}`}>
<NavLink tag={Link} to={`${pathPrefix}${config.uri}`} onClick={toggle}>
{config.name}
</NavLink>
</NavItem>
Expand All @@ -120,7 +120,7 @@ const Navigation: FC<PathPrefixProps & NavigationProps> = ({ pathPrefix, thanosC
</DropdownToggle>
<DropdownMenu>
{config.children.map((c) => (
<DropdownItem key={c.uri} tag={Link} to={`${pathPrefix}${c.uri}`}>
<DropdownItem key={c.uri} tag={Link} to={`${pathPrefix}${c.uri}`} onClick={toggle}>
{c.name}
</DropdownItem>
))}
Expand Down

0 comments on commit 9e08c28

Please sign in to comment.