Add option to use a function for default collapse state

This commit is contained in:
Rene Pfeuffer
2020-02-07 14:27:21 +01:00
parent c84bba8ead
commit 22943eac9a
7 changed files with 1968 additions and 15 deletions

View File

@@ -10,11 +10,12 @@ import { DiffObjectProps, File } from "./DiffTypes";
import { NotFoundError } from "../errors";
import { Notification } from "../index";
import { withTranslation, WithTranslation } from "react-i18next";
import { DefaultCollapsed } from "./DefaultCollapsed";
type Props = WithTranslation &
DiffObjectProps & {
url: string;
defaultCollapse?: boolean;
defaultCollapse?: DefaultCollapsed;
};
type State = {