diff --git a/scm-ui/src/repos/components/RepositoryNavLink.js b/scm-ui/src/repos/components/RepositoryNavLink.js index 4e315bcf9f..b4cf7774af 100644 --- a/scm-ui/src/repos/components/RepositoryNavLink.js +++ b/scm-ui/src/repos/components/RepositoryNavLink.js @@ -8,6 +8,7 @@ type Props = { to: string, label: string, linkName: string, + activeWhenMatch?: (route: any) => boolean, activeOnlyWhenExact: boolean }; @@ -16,19 +17,13 @@ type Props = { */ class RepositoryNavLink extends React.Component { render() { - const { linkName, to, label, repository, activeOnlyWhenExact } = this.props; + const { repository, linkName } = this.props; if (!repository._links[linkName]) { return null; } - return ( - - ); + return ; } }