Shun Miyazawa 3 лет назад
Родитель
Сommit
d20e079816
1 измененных файлов с 1 добавлено и 24 удалено
  1. 1 24
      packages/app/src/components/ForbiddenPage.tsx

+ 1 - 24
packages/app/src/components/ForbiddenPage.tsx

@@ -1,12 +1,7 @@
-import React, { useMemo } from 'react';
+import React from 'react';
 
 
 import { useTranslation } from 'next-i18next';
 import { useTranslation } from 'next-i18next';
 
 
-import CustomNavAndContents from './CustomNavigation/CustomNavAndContents';
-import { DescendantsPageListForCurrentPath } from './DescendantsPageList';
-import PageListIcon from './Icons/PageListIcon';
-
-
 type Props = {
 type Props = {
   isLinkSharingDisabled?: boolean,
   isLinkSharingDisabled?: boolean,
 }
 }
@@ -14,17 +9,6 @@ type Props = {
 const ForbiddenPage = React.memo((props: Props): JSX.Element => {
 const ForbiddenPage = React.memo((props: Props): JSX.Element => {
   const { t } = useTranslation();
   const { t } = useTranslation();
 
 
-  const navTabMapping = useMemo(() => {
-    return {
-      pagelist: {
-        Icon: PageListIcon,
-        Content: DescendantsPageListForCurrentPath,
-        i18n: t('page_list'),
-        index: 0,
-      },
-    };
-  }, [t]);
-
   return (
   return (
     <>
     <>
       <div className="row not-found-message-row mb-4">
       <div className="row not-found-message-row mb-4">
@@ -44,13 +28,6 @@ const ForbiddenPage = React.memo((props: Props): JSX.Element => {
           </p>
           </p>
         </div>
         </div>
       </div>
       </div>
-
-      { !props.isLinkSharingDisabled && (
-        <div className="mt-5">
-          <CustomNavAndContents navTabMapping={navTabMapping} />
-        </div>
-      ) }
-
     </>
     </>
   );
   );
 });
 });