implemented api for diff annotations

This commit is contained in:
Sebastian Sdorra
2019-02-27 11:56:50 +01:00
parent 3ac47b0977
commit 891e3587b3
8 changed files with 280 additions and 44 deletions

View File

@@ -6,10 +6,10 @@ import parser from "gitdiff-parser";
import Loading from "../Loading";
import Diff from "./Diff";
import type {DiffObjectProps} from "./DiffTypes";
type Props = {
url: string,
sideBySide: boolean
type Props = DiffObjectProps & {
url: string
};
type State = {
@@ -71,7 +71,7 @@ class LoadingDiff extends React.Component<Props, State> {
return null;
}
else {
return <Diff diff={diff} />;
return <Diff diff={diff} {...this.props} />;
}
}