fix formatting with prettier

This commit is contained in:
Eduard Heimbuch
2020-08-12 12:53:59 +02:00
parent f3d2c3d17b
commit e9edd5ad8f
9 changed files with 177 additions and 172 deletions

View File

@@ -23,15 +23,15 @@
*/
import React from "react";
import DiffFile from "./DiffFile";
import {DiffObjectProps, File, FileControlFactory} from "./DiffTypes";
import { DiffObjectProps, File, FileControlFactory } from "./DiffTypes";
import Notification from "../Notification";
import {WithTranslation, withTranslation} from "react-i18next";
import { WithTranslation, withTranslation } from "react-i18next";
type Props = WithTranslation &
DiffObjectProps & {
diff: File[];
fileControlFactory?: FileControlFactory;
};
diff: File[];
fileControlFactory?: FileControlFactory;
};
class Diff extends React.Component<Props> {
static defaultProps: Partial<Props> = {
@@ -39,7 +39,7 @@ class Diff extends React.Component<Props> {
};
render() {
const {diff, t, ...fileProps} = this.props;
const { diff, t, ...fileProps } = this.props;
return (
<>
{diff.length === 0 ? (