reformat components with prettier

This commit is contained in:
Eduard Heimbuch
2020-03-31 17:11:16 +02:00
parent 5273082caa
commit fd94746a98
21 changed files with 49 additions and 50 deletions

View File

@@ -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 = {

View File

@@ -26,4 +26,4 @@ export type RoutingProps = {
to: string;
activeOnlyWhenExact?: boolean;
activeWhenMatch?: (route: any) => boolean;
}
};

View File

@@ -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;

View File

@@ -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;