diff --git a/scm-ui/ui-components/src/navigation/NavLink.tsx b/scm-ui/ui-components/src/navigation/NavLink.tsx index 868bbbc512..eba1373d9a 100644 --- a/scm-ui/ui-components/src/navigation/NavLink.tsx +++ b/scm-ui/ui-components/src/navigation/NavLink.tsx @@ -36,7 +36,7 @@ type Props = RoutingProps & { }; const NavLink: FC = ({ to, activeWhenMatch, activeOnlyWhenExact, icon, label, title }) => { - const active = useActiveMatch({to, activeWhenMatch, activeOnlyWhenExact}); + const active = useActiveMatch({ to, activeWhenMatch, activeOnlyWhenExact }); const context = useMenuContext(); const collapsed = context.isCollapsed(); diff --git a/scm-ui/ui-components/src/navigation/useActiveMatch.ts b/scm-ui/ui-components/src/navigation/useActiveMatch.ts index 1ff949d8aa..d4550534fd 100644 --- a/scm-ui/ui-components/src/navigation/useActiveMatch.ts +++ b/scm-ui/ui-components/src/navigation/useActiveMatch.ts @@ -22,10 +22,10 @@ * SOFTWARE. */ -import {useLocation, useRouteMatch} from "react-router-dom"; -import {RoutingProps} from "./RoutingProps"; +import { useLocation, useRouteMatch } from "react-router-dom"; +import { RoutingProps } from "./RoutingProps"; -const useActiveMatch = ({to, activeOnlyWhenExact, activeWhenMatch}: RoutingProps) => { +const useActiveMatch = ({ to, activeOnlyWhenExact, activeWhenMatch }: RoutingProps) => { const match = useRouteMatch({ path: to, exact: activeOnlyWhenExact