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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
feat(view-list): hide table view
tzhangchi6e879e8eb315
diff --git a/libs/components/editor-blocks/src/blocks/group/group-menu/AddViewMenu.tsx b/libs/components/editor-blocks/src/blocks/group/group-menu/AddViewMenu.tsxindex cffa0a0dd0..e1cee48f30 100644--- a/libs/components/editor-blocks/src/blocks/group/group-menu/AddViewMenu.tsx+++ b/libs/components/editor-blocks/src/blocks/group/group-menu/AddViewMenu.tsx@@ -66,10 +66,10 @@ export const AddViewMenu = () => {key={name}active={viewType === scene}onClick={() => {- if (scene === RecastScene.Table) {- // The table view is under progress- return;- }+ // if (scene === RecastScene.Table) {+ // // The table view is under progress+ // return;+ // }setViewType(scene);}}style={{ textTransform: 'uppercase' }}diff --git a/libs/components/editor-blocks/src/blocks/group/group-menu/ViewsMenu.tsx b/libs/components/editor-blocks/src/blocks/group/group-menu/ViewsMenu.tsxindex 9e6a70df24..273911a94d 100644--- a/libs/components/editor-blocks/src/blocks/group/group-menu/ViewsMenu.tsx+++ b/libs/components/editor-blocks/src/blocks/group/group-menu/ViewsMenu.tsx@@ -99,10 +99,10 @@ export const ViewsMenu = () => {key={name}active={viewType === scene}onClick={() => {- if (scene === RecastScene.Table) {- // The table view is under progress- return;- }+ // if (scene === RecastScene.Table) {+ // // The table view is under progress+ // return;+ // }setViewType(scene);}}style={{ textTransform: 'uppercase' }}diff --git a/libs/components/editor-blocks/src/blocks/group/group-menu/constant.tsx b/libs/components/editor-blocks/src/blocks/group/group-menu/constant.tsxindex 0f2a1887d4..7a057eccbd 100644--- a/libs/components/editor-blocks/src/blocks/group/group-menu/constant.tsx+++ b/libs/components/editor-blocks/src/blocks/group/group-menu/constant.tsx@@ -1,9 +1,5 @@import { RecastScene } from '@toeverything/components/editor-core';-import {- KanBanIcon,- TableIcon,- TodoListIcon,-} from '@toeverything/components/icons';+import { KanBanIcon, TodoListIcon } from '@toeverything/components/icons';export const VIEW_LIST = [{@@ -16,9 +12,9 @@ export const VIEW_LIST = [scene: RecastScene.Kanban,icon: <KanBanIcon fontSize="small" />,},- {- name: 'Table',- scene: RecastScene.Table,- icon: <TableIcon fontSize="small" />,- },+ // {+ // name: 'Table',+ // scene: RecastScene.Table,+ // icon: <TableIcon fontSize="small" />,+ // },] as const;