|
@@ -74,7 +74,7 @@ const renderByInitialNode = (
|
|
|
isScrolled: boolean,
|
|
isScrolled: boolean,
|
|
|
targetPathOrId?: string,
|
|
targetPathOrId?: string,
|
|
|
isEnabledAttachTitleHeader?: boolean,
|
|
isEnabledAttachTitleHeader?: boolean,
|
|
|
- mutateAfterRenamed?: () => void,
|
|
|
|
|
|
|
+ onRenamed?: () => void,
|
|
|
onClickDuplicateMenuItem?: (pageToDuplicate: IPageForPageDuplicateModal) => void,
|
|
onClickDuplicateMenuItem?: (pageToDuplicate: IPageForPageDuplicateModal) => void,
|
|
|
onClickDeleteMenuItem?: (pageToDelete: IPageToDeleteWithMeta) => void,
|
|
onClickDeleteMenuItem?: (pageToDelete: IPageToDeleteWithMeta) => void,
|
|
|
): JSX.Element => {
|
|
): JSX.Element => {
|
|
@@ -88,7 +88,7 @@ const renderByInitialNode = (
|
|
|
isOpen
|
|
isOpen
|
|
|
isEnabledAttachTitleHeader={isEnabledAttachTitleHeader}
|
|
isEnabledAttachTitleHeader={isEnabledAttachTitleHeader}
|
|
|
isEnableActions={isEnableActions}
|
|
isEnableActions={isEnableActions}
|
|
|
- mutateAfterRenamed={mutateAfterRenamed}
|
|
|
|
|
|
|
+ onRenamed={onRenamed}
|
|
|
onClickDuplicateMenuItem={onClickDuplicateMenuItem}
|
|
onClickDuplicateMenuItem={onClickDuplicateMenuItem}
|
|
|
onClickDeleteMenuItem={onClickDeleteMenuItem}
|
|
onClickDeleteMenuItem={onClickDeleteMenuItem}
|
|
|
isScrolled={isScrolled}
|
|
isScrolled={isScrolled}
|
|
@@ -163,7 +163,7 @@ const ItemsTree: FC<ItemsTreeProps> = (props: ItemsTreeProps) => {
|
|
|
});
|
|
});
|
|
|
}, [socket, ptDescCountMap, updatePtDescCountMap]);
|
|
}, [socket, ptDescCountMap, updatePtDescCountMap]);
|
|
|
|
|
|
|
|
- const mutateAfterRenamed = () => {
|
|
|
|
|
|
|
+ const onRenamed = () => {
|
|
|
advancePt();
|
|
advancePt();
|
|
|
advanceFts();
|
|
advanceFts();
|
|
|
advanceDpl();
|
|
advanceDpl();
|
|
@@ -218,7 +218,7 @@ const ItemsTree: FC<ItemsTreeProps> = (props: ItemsTreeProps) => {
|
|
|
const initialNode = generateInitialNodeAfterResponse(ancestorsChildrenData.ancestorsChildren, new ItemNode(rootPageData.rootPage));
|
|
const initialNode = generateInitialNodeAfterResponse(ancestorsChildrenData.ancestorsChildren, new ItemNode(rootPageData.rootPage));
|
|
|
return renderByInitialNode(
|
|
return renderByInitialNode(
|
|
|
// eslint-disable-next-line max-len
|
|
// eslint-disable-next-line max-len
|
|
|
- initialNode, isEnableActions, isScrolled, targetPathOrId, isEnabledAttachTitleHeader, mutateAfterRenamed, onClickDuplicateMenuItem, onClickDeleteMenuItem,
|
|
|
|
|
|
|
+ initialNode, isEnableActions, isScrolled, targetPathOrId, isEnabledAttachTitleHeader, onRenamed, onClickDuplicateMenuItem, onClickDeleteMenuItem,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -229,7 +229,7 @@ const ItemsTree: FC<ItemsTreeProps> = (props: ItemsTreeProps) => {
|
|
|
const initialNode = generateInitialNodeBeforeResponse(targetAndAncestorsData.targetAndAncestors);
|
|
const initialNode = generateInitialNodeBeforeResponse(targetAndAncestorsData.targetAndAncestors);
|
|
|
return renderByInitialNode(
|
|
return renderByInitialNode(
|
|
|
// eslint-disable-next-line max-len
|
|
// eslint-disable-next-line max-len
|
|
|
- initialNode, isEnableActions, isScrolled, targetPathOrId, isEnabledAttachTitleHeader, mutateAfterRenamed, onClickDuplicateMenuItem, onClickDeleteMenuItem,
|
|
|
|
|
|
|
+ initialNode, isEnableActions, isScrolled, targetPathOrId, isEnabledAttachTitleHeader, onRenamed, onClickDuplicateMenuItem, onClickDeleteMenuItem,
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|