Taichi Masuyama 4 лет назад
Родитель
Сommit
0222ab85d4

+ 1 - 1
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -32,7 +32,7 @@ interface ItemProps {
   isEnabledAttachTitleHeader?: boolean
   onClickDuplicateMenuItem?(pageId: string, path: string): void
   onClickRenameMenuItem?(pageId: string, revisionId: string, path: string): void
-  onClickDeleteMenuItem?(pageToDelete: IPageForPageDeleteModal | null, isAbleToDeleteCompletely: boolean, callback: VoidFunction): void
+  onClickDeleteMenuItem?(pageToDelete: IPageForPageDeleteModal | null, isAbleToDeleteCompletely: boolean, callback?: VoidFunction): void
   mutateSiblings?: VoidFunction
 }
 

+ 1 - 1
packages/app/src/stores/modal.tsx

@@ -39,7 +39,7 @@ export type IPageForPageDeleteModal = {
   isDeleteCompletelyModal?: boolean,
 }
 
-export type OnDeletedFunction = (pathOrPaths: string | string[], isRecursively: Nullable<true>, isCompletely: Nullable<true>, callback: VoidFunction) => void;
+export type OnDeletedFunction = (pathOrPaths: string | string[], isRecursively: Nullable<true>, isCompletely: Nullable<true>) => void;
 
 type DeleteModalStatus = {
   isOpened: boolean,