From 03c29aeee639c57cdb67487aca37a14163f8bcfc Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Tue, 26 Jul 2022 17:39:47 +0800 Subject: [PATCH] chore(view): hide add new view temp --- .../src/blocks/group/GroupMenu.tsx | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/libs/components/editor-blocks/src/blocks/group/GroupMenu.tsx b/libs/components/editor-blocks/src/blocks/group/GroupMenu.tsx index e7745d792..1c9fe8ed0 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={ - - setActivePanel(PANEL_CONFIG.ADD_VIEW as ActivePanel) - } - > - - Add View - + + {filterSorterFlag && ( + + setActivePanel( + PANEL_CONFIG.ADD_VIEW as ActivePanel + ) + } + > + + Add View + + )} { // // Closed beta period temporarily