Skip to content

Commit 8f5c045

Browse files
committed
clean code
1 parent 4fd23a3 commit 8f5c045

File tree

1 file changed

+1
-7
lines changed
  • apps/app/src/features/page-tree/interfaces

1 file changed

+1
-7
lines changed

apps/app/src/features/page-tree/interfaces/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { IPageToDeleteWithMeta } from '@growi/core';
22
import type { CheckboxesFeatureDef, ItemInstance } from '@headless-tree/core';
33

4-
import type { InputValidationResult } from '~/client/util/use-input-validator';
54
import type { IPageForTreeItem } from '~/interfaces/page';
65
import type { IPageForPageDuplicateModal } from '~/states/ui/modal/page-duplicate';
76

@@ -17,11 +16,7 @@ type TreeItemBaseProps<
1716
onRenamed?(fromPath: string | undefined, toPath: string): void;
1817
};
1918

20-
export type TreeItemToolProps = TreeItemBaseProps & {
21-
stateHandlers?: {
22-
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
23-
};
24-
};
19+
export type TreeItemToolProps = TreeItemBaseProps;
2520

2621
export type TreeItemWithCheckboxToolProps = TreeItemBaseProps<
2722
IPageForTreeItem,
@@ -44,7 +39,6 @@ export type TreeItemProps = TreeItemBaseProps & {
4439
customAlternativeComponents?: Array<
4540
React.FunctionComponent<TreeItemToolProps>
4641
>;
47-
validateName?: (name: string) => InputValidationResult | null;
4842
onToggle?: () => void;
4943
onClick?(page: IPageForTreeItem): void;
5044
onWheelClick?(page: IPageForTreeItem): void;

0 commit comments

Comments
 (0)