Sfoglia il codice sorgente

disable footer if noffound page

jam411 3 anni fa
parent
commit
be139e676e
1 ha cambiato i file con 9 aggiunte e 7 eliminazioni
  1. 9 7
      packages/app/src/pages/[[...path]].page.tsx

+ 9 - 7
packages/app/src/pages/[[...path]].page.tsx

@@ -328,13 +328,15 @@ const GrowiPage: NextPage<Props> = (props: Props) => {
               </div>
             </div>
           </div>
-          <footer className="footer d-edit-none">
-            { !isTopPagePath && (<Comments pageId={pageId} />) }
-            { (pageWithMeta != null && isUsersHomePage(pageWithMeta.data.path)) && (
-              <UsersHomePageFooter creatorId={pageWithMeta.data.creator._id}/>
-            )}
-            <PageContentFooter />
-          </footer>
+          { !props.isNotFound && (
+            <footer className="footer d-edit-none">
+              { !isTopPagePath && (<Comments pageId={pageId} />) }
+              { (pageWithMeta != null && isUsersHomePage(pageWithMeta.data.path)) && (
+                <UsersHomePageFooter creatorId={pageWithMeta.data.creator._id}/>
+              )}
+              <PageContentFooter />
+            </footer>
+          )}
 
           <UnsavedAlertDialog />
           <DescendantsPageListModal />