From 34b04b0ccdb75a72952bdf3486826aa1c0176eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Thu, 18 Jun 2020 07:35:40 +0200 Subject: [PATCH] Fix formatting --- scm-ui/ui-components/src/navigation/NavLink.tsx | 2 +- scm-ui/ui-components/src/navigation/useActiveMatch.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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