diff --git a/scm-ui-components/packages/ui-components/src/navigation/NavLink.js b/scm-ui-components/packages/ui-components/src/navigation/NavLink.js index 3a90fd1fc6..1f12e65546 100644 --- a/scm-ui-components/packages/ui-components/src/navigation/NavLink.js +++ b/scm-ui-components/packages/ui-components/src/navigation/NavLink.js @@ -7,7 +7,8 @@ import { Route, Link } from "react-router-dom"; type Props = { to: string, label: string, - activeOnlyWhenExact?: boolean + activeOnlyWhenExact?: boolean, + otherLocation: (route: any) => boolean }; class NavLink extends React.Component { @@ -16,10 +17,10 @@ class NavLink extends React.Component { }; renderLink = (route: any) => { - const { to, label } = this.props; + const { to, label, otherLocation } = this.props; return (
  • - + {label}