2
0
Shun Miyazawa 3 сар өмнө
parent
commit
5d76afc221

+ 8 - 3
apps/app/src/features/page-tree/components/ItemsTree.tsx

@@ -78,8 +78,13 @@ export const ItemsTree: FC<Props> = (props: Props) => {
   const dataLoader = useDataLoader(rootPageId, allPagesCount);
 
   // Tree item handlers (rename, create, etc.) with stable callbacks for headless-tree
-  const { getItemName, isItemFolder, handleRename, creatingParentId, completeRenamingHotkey } =
-    useTreeItemHandlers(triggerTreeRebuild);
+  const {
+    getItemName,
+    isItemFolder,
+    handleRename,
+    creatingParentId,
+    completeRenamingHotkey
+  } = useTreeItemHandlers(triggerTreeRebuild);
 
   // Configure tree features and get checkbox state and D&D handlers
   const { features, checkboxProperties, dndProperties } = useTreeFeatures({
@@ -139,7 +144,7 @@ export const ItemsTree: FC<Props> = (props: Props) => {
     }),
     hotkeys: {
       completeRenaming: completeRenamingHotkey
-    }
+    },
   });
 
   // Notify parent when checked items change

+ 0 - 1
apps/app/src/features/page-tree/hooks/_inner/use-tree-item-handlers.tsx

@@ -14,7 +14,6 @@ import { usePageRename } from '../use-page-rename';
 type completeRenamingHotkey =
   CustomHotkeysConfig<IPageForTreeItem>['completeRenaming'];
 
-
 type UseTreeItemHandlersReturn = {
   /**
    * Stable callback for headless-tree getItemName config