Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: disable add-sub-page double-link feature

xiaodong zuo7c28ebe91469
diff --git a/libs/components/editor-plugins/src/menu/double-link-menu/DoubleLinkMenu.tsx b/libs/components/editor-plugins/src/menu/double-link-menu/DoubleLinkMenu.tsx
index 37fd4699d3..ea9b4dc224 100644
--- a/libs/components/editor-plugins/src/menu/double-link-menu/DoubleLinkMenu.tsx
+++ b/libs/components/editor-plugins/src/menu/double-link-menu/DoubleLinkMenu.tsx
@@ -103,18 +103,18 @@ export const DoubleLinkMenu = ({
items.push({
content: {
id: ADD_NEW_SUB_PAGE,
- content: 'Add new sub-page',
+ content: 'Add new page',
icon: AddIcon,
},
});
- !inAddNewPage &&
- items.push({
- content: {
- id: ADD_NEW_PAGE,
- content: 'Add new page in...',
- icon: AddIcon,
- },
- });
+ // !inAddNewPage &&
+ // items.push({
+ // content: {
+ // id: ADD_NEW_PAGE,
+ // content: 'Add new page in...',
+ // icon: AddIcon,
+ // },
+ // });
return items;
}, [searchResultBlocks, inAddNewPage]);