From 516e30404cb4887b54fda5d46894665f80c142d4 Mon Sep 17 00:00:00 2001 From: bnechyporenko Date: Tue, 31 May 2022 13:37:41 +0200 Subject: [PATCH] Cleaned up the code and added a test Signed-off-by: bnechyporenko --- .../components/CatalogPage/DefaultCatalogPage.tsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx index 4318fc242f..5250dcec0d 100644 --- a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx @@ -23,12 +23,7 @@ import { TableColumn, TableProps, } from '@backstage/core-components'; -import { - configApiRef, - useApi, - usePluginOptions, - useRouteRef, -} from '@backstage/core-plugin-api'; +import { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api'; import { CatalogFilterLayout, EntityLifecyclePicker, @@ -57,10 +52,6 @@ export interface DefaultCatalogPageProps { tableOptions?: TableProps['options']; } -export type CatalogPageOptionsProps = { - createButtonTitle: string; -}; - export function DefaultCatalogPage(props: DefaultCatalogPageProps) { const { columns, @@ -73,8 +64,6 @@ export function DefaultCatalogPage(props: DefaultCatalogPageProps) { useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage'; const createComponentLink = useRouteRef(createComponentRouteRef); - const { createButtonTitle } = usePluginOptions(); - return ( @@ -83,7 +72,7 @@ export function DefaultCatalogPage(props: DefaultCatalogPageProps) { titleComponent={} > All your software catalog entities