From 9f734489937f13fb6ea080b5001b31c8c87045e4 Mon Sep 17 00:00:00 2001 From: GoFightNguyen Date: Sun, 24 Dec 2023 22:17:42 +0000 Subject: [PATCH] catalog: rename to defaultCatalogTableColumnsFunc from defaultColumnsFunc Signed-off-by: GoFightNguyen --- plugins/catalog/api-report.md | 2 +- plugins/catalog/src/components/CatalogTable/CatalogTable.tsx | 4 ++-- plugins/catalog/src/components/CatalogTable/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/catalog/api-report.md b/plugins/catalog/api-report.md index e2225f5ba6..718e974302 100644 --- a/plugins/catalog/api-report.md +++ b/plugins/catalog/api-report.md @@ -246,7 +246,7 @@ export interface DefaultCatalogPageProps { } // @public (undocumented) -export const defaultColumnsFunc: CatalogTableColumnsFunc; +export const defaultCatalogTableColumnsFunc: CatalogTableColumnsFunc; // @public export class DefaultEntityPresentationApi implements EntityPresentationApi { diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx index c68e1b06a6..fe79607a0c 100644 --- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx @@ -78,7 +78,7 @@ const refCompare = (a: Entity, b: Entity) => { }; /** @public */ -export const defaultColumnsFunc: CatalogTableColumnsFunc = ({ +export const defaultCatalogTableColumnsFunc: CatalogTableColumnsFunc = ({ filters, entities, }) => { @@ -126,7 +126,7 @@ export const defaultColumnsFunc: CatalogTableColumnsFunc = ({ /** @public */ export const CatalogTable = (props: CatalogTableProps) => { const { - columns = defaultColumnsFunc, + columns = defaultCatalogTableColumnsFunc, tableOptions, subtitle, emptyContent, diff --git a/plugins/catalog/src/components/CatalogTable/index.ts b/plugins/catalog/src/components/CatalogTable/index.ts index e1d96a6f8f..a33cc4a9b5 100644 --- a/plugins/catalog/src/components/CatalogTable/index.ts +++ b/plugins/catalog/src/components/CatalogTable/index.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -export { CatalogTable, defaultColumnsFunc } from './CatalogTable'; +export { CatalogTable, defaultCatalogTableColumnsFunc } from './CatalogTable'; export type { CatalogTableProps } from './CatalogTable'; export type { CatalogTableRow, CatalogTableColumnsFunc } from './types';