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