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 //remove "/realm-name" from the start of the path
const activeItem = history.location.pathname.substring(realm.length + 1); const activeItem = history.location.pathname.substring(realm.length + 1);
return ( return (
<NavLink <li>
id={"nav-item" + path.replace("/", "-")} <NavLink
to={`/${realm}${path}`} id={"nav-item" + path.replace("/", "-")}
className="pf-c-nav__link" to={`/${realm}${path}`}
activeClassName="pf-m-current" className="pf-c-nav__link"
isActive={() => activeClassName="pf-m-current"
path === activeItem || (path !== "/" && activeItem.startsWith(path)) isActive={() =>
} path === activeItem || (path !== "/" && activeItem.startsWith(path))
> }
{t(title)} >
</NavLink> {t(title)}
</NavLink>
</li>
); );
}; };