mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
reformat components with prettier
This commit is contained in:
@@ -36,7 +36,7 @@ export const MenuContext = React.createContext<MenuContext>({
|
||||
setCollapsed() {}
|
||||
});
|
||||
|
||||
export const StateMenuContextProvider: FC = ({children}) => {
|
||||
export const StateMenuContextProvider: FC = ({ children }) => {
|
||||
const [collapsed, setCollapsed] = useState(false);
|
||||
|
||||
const context = {
|
||||
|
||||
@@ -26,4 +26,4 @@ export type RoutingProps = {
|
||||
to: string;
|
||||
activeOnlyWhenExact?: boolean;
|
||||
activeWhenMatch?: (route: any) => boolean;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
import React, {FC} from "react";
|
||||
import React, { FC } from "react";
|
||||
import SubNavigation from "./SubNavigation";
|
||||
import NavLink from "./NavLink";
|
||||
import {RoutingProps} from "./RoutingProps";
|
||||
import { RoutingProps } from "./RoutingProps";
|
||||
|
||||
type Props = RoutingProps & {
|
||||
label: string;
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
import React, { FC, useContext} from "react";
|
||||
import React, { FC, useContext } from "react";
|
||||
import { Link, useRouteMatch } from "react-router-dom";
|
||||
import classNames from "classnames";
|
||||
import useMenuContext, {MenuContext} from "./MenuContext";
|
||||
import {RoutingProps} from "./RoutingProps";
|
||||
import useMenuContext, { MenuContext } from "./MenuContext";
|
||||
import { RoutingProps } from "./RoutingProps";
|
||||
|
||||
type Props = RoutingProps & {
|
||||
label: string;
|
||||
|
||||
Reference in New Issue
Block a user