Added <li> (#2928)

This commit is contained in:
Erik Jan de Wit 2022-07-06 14:22:52 +02:00 committed by GitHub
parent d8d55fe391
commit a7694b8945
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>
);
};