diff --git a/website/src/plugins/changelog/theme/ChangelogPage/index.tsx b/website/src/plugins/changelog/theme/ChangelogPage/index.tsx index 186b4aac7c26..21aaf20dcbd4 100644 --- a/website/src/plugins/changelog/theme/ChangelogPage/index.tsx +++ b/website/src/plugins/changelog/theme/ChangelogPage/index.tsx @@ -8,7 +8,7 @@ import React from 'react'; import BlogLayout from '@theme/BlogLayout'; import ChangelogItem from '@theme/ChangelogItem'; -import BlogPostPaginator from '@theme/BlogPostPaginator'; +import ChangelogPaginator from '@theme/ChangelogPaginator'; import type {Props} from '@theme/BlogPostPage'; import { PageMetadata, @@ -97,7 +97,7 @@ function ChangelogPageContent(props: Props): JSX.Element { {(nextItem || prevItem) && ( - + )} diff --git a/website/src/plugins/changelog/theme/ChangelogPaginator/index.tsx b/website/src/plugins/changelog/theme/ChangelogPaginator/index.tsx new file mode 100644 index 000000000000..61ab311f14de --- /dev/null +++ b/website/src/plugins/changelog/theme/ChangelogPaginator/index.tsx @@ -0,0 +1,56 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// Changed the text labels. + +import React from 'react'; +import Translate, {translate} from '@docusaurus/Translate'; +import PaginatorNavLink from '@theme/PaginatorNavLink'; +import type {Props} from '@theme/BlogPostPaginator'; + +export default function ChangelogPaginator(props: Props): JSX.Element { + const {nextItem, prevItem} = props; + + return ( + + ); +} diff --git a/website/src/plugins/changelog/theme/types.d.ts b/website/src/plugins/changelog/theme/types.d.ts index 108cda8ebb06..ab13c75aa745 100644 --- a/website/src/plugins/changelog/theme/types.d.ts +++ b/website/src/plugins/changelog/theme/types.d.ts @@ -8,6 +8,7 @@ declare module '@theme/ChangelogItem'; declare module '@theme/ChangelogAuthors'; declare module '@theme/ChangelogAuthor'; +declare module '@theme/ChangelogPaginator'; declare module '@theme/IconExpand' { import type {ComponentProps} from 'react';