Browse Source

remove unnecessary dom

Yuki Takei 2 years ago
parent
commit
bee7d40c4a
1 changed files with 2 additions and 4 deletions
  1. 2 4
      apps/app/src/pages/[[...path]].page.tsx

+ 2 - 4
apps/app/src/pages/[[...path]].page.tsx

@@ -120,7 +120,7 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
   const { isLinkSharingDisabled } = props;
   const { data: currentPage } = useSWRxCurrentPage();
   return (
-    <div data-testid="grw-contextual-sub-nav">
+    <div id="grw-subnav-container" data-testid="grw-contextual-sub-nav">
       <GrowiContextualSubNavigationSubstance currentPage={currentPage} isLinkSharingDisabled={isLinkSharingDisabled} />
     </div>
   );
@@ -326,9 +326,7 @@ const Page: NextPageWithLayout<Props> = (props: Props) => {
       </Head>
       <div className={`dynamic-layout-root ${growiLayoutFluidClass} justify-content-between`}>
         <header className="py-0 position-relative">
-          <div id="grw-subnav-container">
-            <GrowiContextualSubNavigation isLinkSharingDisabled={props.disableLinkSharing} />
-          </div>
+          <GrowiContextualSubNavigation isLinkSharingDisabled={props.disableLinkSharing} />
         </header>
 
         <DisplaySwitcher