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.

chore(view): hide add new view temp

lawvs03c29aeee639
diff --git a/libs/components/editor-blocks/src/blocks/group/GroupMenu.tsx b/libs/components/editor-blocks/src/blocks/group/GroupMenu.tsx
index e7745d792f..1c9fe8ed03 100644
--- a/libs/components/editor-blocks/src/blocks/group/GroupMenu.tsx
+++ b/libs/components/editor-blocks/src/blocks/group/GroupMenu.tsx
@@ -105,15 +105,20 @@ const GroupMenuWrapper = ({
content={
<GroupPanel>
<ViewsMenu />
- <IconButton
- active={activePanel === PANEL_CONFIG.ADD_VIEW}
- onClick={() =>
- setActivePanel(PANEL_CONFIG.ADD_VIEW as ActivePanel)
- }
- >
- <AddViewIcon fontSize="small" />
- Add View
- </IconButton>
+
+ {filterSorterFlag && (
+ <IconButton
+ active={activePanel === PANEL_CONFIG.ADD_VIEW}
+ onClick={() =>
+ setActivePanel(
+ PANEL_CONFIG.ADD_VIEW as ActivePanel
+ )
+ }
+ >
+ <AddViewIcon fontSize="small" />
+ Add View
+ </IconButton>
+ )}
{
// // Closed beta period temporarily