diff --git a/plugins/catalog/src/components/CatalogTable/PaginatedCatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/PaginatedCatalogTable.tsx index e74dfca78b..b592ec01d2 100644 --- a/plugins/catalog/src/components/CatalogTable/PaginatedCatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/PaginatedCatalogTable.tsx @@ -19,14 +19,19 @@ import Box from '@material-ui/core/Box'; import { BaseTable, TableProps, tableStyles } from '@backstage/core-components'; import { CatalogTableRow } from './types'; -import { useEntityList } from '@backstage/plugin-catalog-react'; -export function PaginatedCatalogTable(props: TableProps) { - const { columns, data } = props; +type PaginatedCatalogTableProps = { + prev?(): void; + next?(): void; +} & TableProps; + +/** + * @internal + */ +export function PaginatedCatalogTable(props: PaginatedCatalogTableProps) { + const { columns, data, next, prev } = props; const tableClasses = tableStyles(); - const { next, prev } = useEntityList(); - return ( <>