Fix formatting

This commit is contained in:
René Pfeuffer
2020-06-18 07:35:40 +02:00
parent ac9f7914ae
commit 34b04b0ccd
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ type Props = RoutingProps & {
}; };
const NavLink: FC<Props> = ({ to, activeWhenMatch, activeOnlyWhenExact, icon, label, title }) => { const NavLink: FC<Props> = ({ to, activeWhenMatch, activeOnlyWhenExact, icon, label, title }) => {
const active = useActiveMatch({to, activeWhenMatch, activeOnlyWhenExact}); const active = useActiveMatch({ to, activeWhenMatch, activeOnlyWhenExact });
const context = useMenuContext(); const context = useMenuContext();
const collapsed = context.isCollapsed(); const collapsed = context.isCollapsed();

View File

@@ -22,10 +22,10 @@
* SOFTWARE. * SOFTWARE.
*/ */
import {useLocation, useRouteMatch} from "react-router-dom"; import { useLocation, useRouteMatch } from "react-router-dom";
import {RoutingProps} from "./RoutingProps"; import { RoutingProps } from "./RoutingProps";
const useActiveMatch = ({to, activeOnlyWhenExact, activeWhenMatch}: RoutingProps) => { const useActiveMatch = ({ to, activeOnlyWhenExact, activeWhenMatch }: RoutingProps) => {
const match = useRouteMatch({ const match = useRouteMatch({
path: to, path: to,
exact: activeOnlyWhenExact exact: activeOnlyWhenExact