Added <li>
(#2928)
This commit is contained in:
parent
d8d55fe391
commit
a7694b8945
1 changed files with 13 additions and 11 deletions
|
@ -54,17 +54,19 @@ export const PageNav: React.FunctionComponent = () => {
|
|||
//remove "/realm-name" from the start of the path
|
||||
const activeItem = history.location.pathname.substring(realm.length + 1);
|
||||
return (
|
||||
<NavLink
|
||||
id={"nav-item" + path.replace("/", "-")}
|
||||
to={`/${realm}${path}`}
|
||||
className="pf-c-nav__link"
|
||||
activeClassName="pf-m-current"
|
||||
isActive={() =>
|
||||
path === activeItem || (path !== "/" && activeItem.startsWith(path))
|
||||
}
|
||||
>
|
||||
{t(title)}
|
||||
</NavLink>
|
||||
<li>
|
||||
<NavLink
|
||||
id={"nav-item" + path.replace("/", "-")}
|
||||
to={`/${realm}${path}`}
|
||||
className="pf-c-nav__link"
|
||||
activeClassName="pf-m-current"
|
||||
isActive={() =>
|
||||
path === activeItem || (path !== "/" && activeItem.startsWith(path))
|
||||
}
|
||||
>
|
||||
{t(title)}
|
||||
</NavLink>
|
||||
</li>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue