Skip to content

Commit 02598ce

Browse files
committed
Use route exact property in NavLink
1 parent c612b7b commit 02598ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/AppLayout/AppLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const AppLayout: React.FunctionComponent<IAppLayout> = ({ children }) => {
5454

5555
const renderNavItem = (route: IAppRoute, index: number) => (
5656
<NavItem key={`${route.label}-${index}`} id={`${route.label}-${index}`}>
57-
<NavLink exact to={route.path} activeClassName="pf-m-current">
57+
<NavLink exact={route.exact} to={route.path} activeClassName="pf-m-current">
5858
{route.label}
5959
</NavLink>
6060
</NavItem>

0 commit comments

Comments
 (0)