Merge pull request #28612 from kuangp/refactor/catalog-table
refactor(CatalogTable): allow overriding default components
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog': patch
|
||||
---
|
||||
|
||||
Revert client side paginated catalog table to using built in Material Table toolbar component
|
||||
@@ -49,7 +49,6 @@ import { defaultCatalogTableColumnsFunc } from './defaultCatalogTableColumnsFunc
|
||||
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
||||
import { catalogTranslationRef } from '../../alpha/translation';
|
||||
import { FavoriteToggleIcon } from '@backstage/core-components';
|
||||
import { CatalogTableToolbar } from './CatalogTableToolbar';
|
||||
|
||||
/**
|
||||
* Props for {@link CatalogTable}.
|
||||
@@ -247,9 +246,6 @@ export const CatalogTable = (props: CatalogTableProps) => {
|
||||
pageSizeOptions: [20, 50, 100],
|
||||
...options,
|
||||
}}
|
||||
components={{
|
||||
Toolbar: CatalogTableToolbar,
|
||||
}}
|
||||
title={title}
|
||||
data={rows}
|
||||
actions={actions}
|
||||
|
||||
Reference in New Issue
Block a user