mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
Add option to use a function for default collapse state
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user