reformat components with prettier

This commit is contained in:
Eduard Heimbuch
2020-03-31 17:15:09 +02:00
parent fd94746a98
commit 6c6d6c1272
5 changed files with 9 additions and 7 deletions

View File

@@ -278,9 +278,7 @@ class PluginModal extends React.Component<Props, State> {
</div> </div>
</div> </div>
<div className="media"> <div className="media">
<div className="media-content"> <div className="media-content">{this.createRestartSectionContent()}</div>
{this.createRestartSectionContent()}
</div>
</div> </div>
{this.renderNotifications()} {this.renderNotifications()}
</> </>

View File

@@ -27,7 +27,6 @@ import { PendingPlugins } from "@scm-manager/ui-types";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import PendingPluginsQueue from "./PendingPluginsQueue"; import PendingPluginsQueue from "./PendingPluginsQueue";
type ModalBodyProps = { type ModalBodyProps = {
pendingPlugins: PendingPlugins; pendingPlugins: PendingPlugins;
}; };

View File

@@ -54,7 +54,12 @@ type Props = WithTranslation & {
// dispatch functions // dispatch functions
fetchNamespaceStrategiesIfNeeded: () => void; fetchNamespaceStrategiesIfNeeded: () => void;
fetchRepositoryTypesIfNeeded: () => void; fetchRepositoryTypesIfNeeded: () => void;
createRepo: (link: string, repository: Repository, initRepository: boolean, callback: (repo: Repository) => void) => void; createRepo: (
link: string,
repository: Repository,
initRepository: boolean,
callback: (repo: Repository) => void
) => void;
resetForm: () => void; resetForm: () => void;
// context props // context props

View File

@@ -176,7 +176,7 @@ export default function reducer(
pending: false pending: false
} }
}; };
} else if (action.itemId && (action.type === FETCH_UPDATES_SUCCESS)) { } else if (action.itemId && action.type === FETCH_UPDATES_SUCCESS) {
return { return {
...state, ...state,
[action.itemId + action.payload.hunk]: { [action.itemId + action.payload.hunk]: {