mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
Fix formatting
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user