diff --git a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx index a50cd4fa2a..b1cc0d3913 100644 --- a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx @@ -50,11 +50,16 @@ import { CatalogTableColumnsFunc } from '../CatalogTable/types'; export interface BaseCatalogPageProps { filters: ReactNode; content?: ReactNode; + enablePagination?: boolean; } /** @internal */ export function BaseCatalogPage(props: BaseCatalogPageProps) { - const { filters, content = } = props; + const { + filters, + enablePagination, + content = , + } = props; const orgName = useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage'; const createComponentLink = useRouteRef(createComponentRouteRef); @@ -70,7 +75,7 @@ export function BaseCatalogPage(props: BaseCatalogPageProps) { /> All your software catalog entities - + {filters} {content} @@ -94,6 +99,7 @@ export interface DefaultCatalogPageProps { tableOptions?: TableProps['options']; emptyContent?: ReactNode; ownerPickerMode?: EntityOwnerPickerProps['mode']; + enablePagination?: boolean; } export function DefaultCatalogPage(props: DefaultCatalogPageProps) { @@ -105,10 +111,12 @@ export function DefaultCatalogPage(props: DefaultCatalogPageProps) { tableOptions = {}, emptyContent, ownerPickerMode, + enablePagination, } = props; return ( @@ -127,6 +135,7 @@ export function DefaultCatalogPage(props: DefaultCatalogPageProps) { actions={actions} tableOptions={tableOptions} emptyContent={emptyContent} + enablePagination={enablePagination} /> } /> diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx index 4dd3fa257d..4b3cb4c276 100644 --- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx @@ -58,6 +58,7 @@ export interface CatalogTableProps { tableOptions?: TableProps['options']; emptyContent?: ReactNode; subtitle?: string; + enablePagination?: boolean; } const YellowStar = withStyles({