Skip to content

Commit

Permalink
use DescendantsPageList instead of NotFoundPage
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Oct 11, 2023
1 parent e88bca1 commit b20b414
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/app/src/pages/_cms/[id].page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { useTranslation } from 'next-i18next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import Head from 'next/head';

import { DescendantsPageList } from '~/components/DescendantsPageList';
import { GrowiSubNavigation } from '~/components/Navbar/GrowiSubNavigation';
import NotFoundPage from '~/components/NotFoundPage';
import type { CrowiRequest } from '~/interfaces/crowi-request';
import type { RendererConfig } from '~/interfaces/services/renderer';
import { useDrawerMode } from '~/stores/ui';
Expand All @@ -21,7 +21,7 @@ import {
import { NextPageWithLayout } from '../_app.page';
import type { CommonProps } from '../utils/commons';
import {
getServerSideCommonProps, getNextI18NextConfig, generateCustomTitle, useInitSidebarConfig,
getServerSideCommonProps, getNextI18NextConfig, useInitSidebarConfig, generateCustomTitleForPage,
} from '../utils/commons';

type Props = CommonProps & {
Expand All @@ -48,7 +48,7 @@ const Page: NextPageWithLayout<CommonProps> = (props: Props) => {

const { data: isDrawerMode } = useDrawerMode();

const title = generateCustomTitle(props, t('Tags'));
const title = generateCustomTitleForPage(props, props.currentPathname);

return (
<>
Expand All @@ -67,7 +67,7 @@ const Page: NextPageWithLayout<CommonProps> = (props: Props) => {
</header>

<div className="grw-container-convertible container-lg mb-5 pb-5" data-testid="tags-page">
<NotFoundPage path={props.currentPathname} />
<DescendantsPageList path={props.currentPathname} />
</div>
</div>
</>
Expand Down

0 comments on commit b20b414

Please sign in to comment.