mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
Use formatting from prettier
This commit is contained in:
@@ -1,13 +1,25 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import React, {Component} from "react";
|
import React, { Component } from "react";
|
||||||
import Main from "./Main";
|
import Main from "./Main";
|
||||||
import {connect} from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import {translate} from "react-i18next";
|
import { translate } from "react-i18next";
|
||||||
import {withRouter} from "react-router-dom";
|
import { withRouter } from "react-router-dom";
|
||||||
import {fetchMe, getFetchMeFailure, getMe, isAuthenticated, isFetchMePending} from "../modules/auth";
|
import {
|
||||||
|
fetchMe,
|
||||||
|
getFetchMeFailure,
|
||||||
|
getMe,
|
||||||
|
isAuthenticated,
|
||||||
|
isFetchMePending
|
||||||
|
} from "../modules/auth";
|
||||||
|
|
||||||
import {ErrorPage, Footer, Header, Loading, PrimaryNavigation} from "@scm-manager/ui-components";
|
import {
|
||||||
import type {Links, Me} from "@scm-manager/ui-types";
|
ErrorPage,
|
||||||
|
Footer,
|
||||||
|
Header,
|
||||||
|
Loading,
|
||||||
|
PrimaryNavigation
|
||||||
|
} from "@scm-manager/ui-components";
|
||||||
|
import type { Links, Me } from "@scm-manager/ui-types";
|
||||||
import {
|
import {
|
||||||
getFetchIndexResourcesFailure,
|
getFetchIndexResourcesFailure,
|
||||||
getLinks,
|
getLinks,
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
//@flow
|
//@flow
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import {connect} from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import {Redirect, withRouter} from "react-router-dom";
|
import { Redirect, withRouter } from "react-router-dom";
|
||||||
import {compose} from "redux";
|
import { compose } from "redux";
|
||||||
import {translate} from "react-i18next";
|
import { translate } from "react-i18next";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import {getLoginFailure, isAuthenticated, isLoginPending, login} from "../modules/auth";
|
import {
|
||||||
import {getLoginInfoLink, getLoginLink} from "../modules/indexResource";
|
getLoginFailure,
|
||||||
|
isAuthenticated,
|
||||||
|
isLoginPending,
|
||||||
|
login
|
||||||
|
} from "../modules/auth";
|
||||||
|
import { getLoginInfoLink, getLoginLink } from "../modules/indexResource";
|
||||||
import LoginInfo from "../components/LoginInfo";
|
import LoginInfo from "../components/LoginInfo";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import type {Me} from "@scm-manager/ui-types";
|
import type { Me } from "@scm-manager/ui-types";
|
||||||
import * as types from "./types";
|
import * as types from "./types";
|
||||||
|
|
||||||
import {apiClient, UnauthorizedError} from "@scm-manager/ui-components";
|
import { apiClient, UnauthorizedError } from "@scm-manager/ui-components";
|
||||||
import {isPending} from "./pending";
|
import { isPending } from "./pending";
|
||||||
import {getFailure} from "./failure";
|
import { getFailure } from "./failure";
|
||||||
import {
|
import {
|
||||||
callFetchIndexResources,
|
callFetchIndexResources,
|
||||||
fetchIndexResources,
|
fetchIndexResources,
|
||||||
|
|||||||
@@ -35,7 +35,10 @@ import reducer, {
|
|||||||
import configureMockStore from "redux-mock-store";
|
import configureMockStore from "redux-mock-store";
|
||||||
import thunk from "redux-thunk";
|
import thunk from "redux-thunk";
|
||||||
import fetchMock from "fetch-mock";
|
import fetchMock from "fetch-mock";
|
||||||
import {FETCH_INDEXRESOURCES_PENDING, FETCH_INDEXRESOURCES_SUCCESS} from "./indexResource";
|
import {
|
||||||
|
FETCH_INDEXRESOURCES_PENDING,
|
||||||
|
FETCH_INDEXRESOURCES_SUCCESS
|
||||||
|
} from "./indexResource";
|
||||||
|
|
||||||
const me = {
|
const me = {
|
||||||
name: "tricia",
|
name: "tricia",
|
||||||
|
|||||||
Reference in New Issue
Block a user