diff --git a/src/sidebar/components/PaginatedThreadList.tsx b/src/sidebar/components/PaginatedThreadList.tsx index 115a1dccefe..01a2d63f4c3 100644 --- a/src/sidebar/components/PaginatedThreadList.tsx +++ b/src/sidebar/components/PaginatedThreadList.tsx @@ -1,8 +1,8 @@ +import { Pagination } from '@hypothesis/frontend-shared'; import { useMemo } from 'preact/hooks'; import type { Thread } from '../helpers/build-thread'; import { countVisible } from '../helpers/thread'; -import PaginationNavigation from './PaginationNavigation'; import ThreadList from './ThreadList'; export type PaginatedThreadListProps = { @@ -19,7 +19,7 @@ export type PaginatedThreadListProps = { * * Render the threads for the current page of results, and pagination controls. */ -function PaginatedThreadList({ +export default function PaginatedThreadList({ currentPage, isLoading, onChangePage, @@ -41,7 +41,7 @@ function PaginatedThreadList({ <> {!isLoading && ( - ); } - -export default PaginatedThreadList; diff --git a/src/sidebar/components/PaginationNavigation.tsx b/src/sidebar/components/PaginationNavigation.tsx deleted file mode 100644 index a96d0a4139e..00000000000 --- a/src/sidebar/components/PaginationNavigation.tsx +++ /dev/null @@ -1,146 +0,0 @@ -import { - Button, - ArrowLeftIcon, - ArrowRightIcon, -} from '@hypothesis/frontend-shared'; -import type { ButtonProps } from '@hypothesis/frontend-shared/lib/components/input/Button'; -import type { PresentationalProps } from '@hypothesis/frontend-shared/lib/types'; -import classnames from 'classnames'; -import type { JSX } from 'preact'; - -import { pageNumberOptions } from '../util/pagination'; - -type NavigationButtonProps = PresentationalProps & - ButtonProps & - Omit, 'icon' | 'size'>; - -function NavigationButton({ ...buttonProps }: NavigationButtonProps) { - return ( -