From 326f556251a6611ac1914416f494a62c7c431675 Mon Sep 17 00:00:00 2001 From: Jason Nguyen Date: Fri, 19 Jan 2024 07:56:51 -0700 Subject: [PATCH] simplify changeset Signed-off-by: Jason Nguyen --- .changeset/seven-dots-serve.md | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/.changeset/seven-dots-serve.md b/.changeset/seven-dots-serve.md index f48ab1f19c..80919b5d28 100644 --- a/.changeset/seven-dots-serve.md +++ b/.changeset/seven-dots-serve.md @@ -2,33 +2,4 @@ '@backstage/plugin-catalog': minor --- -Exported `CatalogTable.defaultColumnsFunc` to create a seam for defining the columns in `` of some Kinds while using the default columns for the others. -This is useful for defining the columns of a custom Kind or to redefine the columns for a built-in Kind. - -```diff -// packages/app/src/App.tsx - -import { - CatalogEntityPage, - CatalogIndexPage, - catalogPlugin, -+ CatalogTable, -+ CatalogTableColumnsFunc, -} from '@backstage/plugin-catalog'; - -+ const myColumnsFunc: CatalogTableColumnsFunc = (entityListContext) => { -+ if (entityListContext.filters.kind?.value === 'MyKind') { -+ return [ -+ CatalogTable.columns.createNameColumn(), -+ CatalogTable.columns.createOwnerColumn() -+ ]; -+ } -+ -+ return CatalogTable.defaultColumnsFunc(entityListContext); -+ }; - -... - -- } /> -+ } /> -``` +Exported `CatalogTable.defaultColumnsFunc` for defining the columns in `` of some Kinds while using the default columns for the others.