Explorar o código

Revert "apply is able to show create button"

This reverts commit c03b5282910bc1d73f9ddc5a16039b69b068dc90.
ryoji-s %!s(int64=2) %!d(string=hai) anos
pai
achega
591f1a918b

+ 1 - 12
apps/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -27,7 +27,7 @@ import {
 import { mutatePageTree } from '~/stores/page-listing';
 import {
   useEditorMode, useIsAbleToShowPageManagement,
-  useIsAbleToChangeEditorMode, useIsAbleToShowCreateButton,
+  useIsAbleToChangeEditorMode,
 } from '~/stores/ui';
 
 import CreateTemplateModal from '../CreateTemplateModal';
@@ -200,7 +200,6 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
 
   const { data: isAbleToShowPageManagement } = useIsAbleToShowPageManagement();
   const { data: isAbleToChangeEditorMode } = useIsAbleToChangeEditorMode();
-  const { data: isAbleToShowCreateButton } = useIsAbleToShowCreateButton();
 
   // TODO: implement tags for editor
   // refs: https://redmine.weseek.co.jp/issues/132125
@@ -359,16 +358,6 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
             onPageEditorModeButtonClicked={viewType => mutateEditorMode(viewType)}
           />
         )}
-        {isAbleToShowCreateButton && (
-          <button
-            type="button"
-            className="btn btn-outline-primary"
-            onClick={() => {}}
-          >
-            <span className="me-1"><i className="icon-control-play" /></span>
-            <span>Create</span>
-          </button>
-        )}
       </div>
 
       {path != null && currentUser != null && !isReadOnlyUser && (