|
|
@@ -6,15 +6,25 @@ import TimeLineIcon from './Icons/TimeLineIcon';
|
|
|
import CustomNavAndContents from './CustomNavigation/CustomNavAndContents';
|
|
|
import DescendantsPageList from './DescendantsPageList';
|
|
|
import PageTimeline from './PageTimeline';
|
|
|
+import { useCurrentPagePath } from '~/stores/context';
|
|
|
+
|
|
|
|
|
|
const NotFoundPage = (): JSX.Element => {
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
+ const { data: currentPagePath } = useCurrentPagePath();
|
|
|
+
|
|
|
+ const DescendantsPageListForThisPage = (): JSX.Element => {
|
|
|
+ return currentPagePath != null
|
|
|
+ ? <DescendantsPageList path={currentPagePath} />
|
|
|
+ : <></>;
|
|
|
+ };
|
|
|
+
|
|
|
const navTabMapping = useMemo(() => {
|
|
|
return {
|
|
|
pagelist: {
|
|
|
Icon: PageListIcon,
|
|
|
- Content: DescendantsPageList,
|
|
|
+ Content: DescendantsPageListForThisPage,
|
|
|
i18n: t('page_list'),
|
|
|
index: 0,
|
|
|
},
|