From a258ab82566e9ee8bd268cf37ad434e7831068b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Vit=C3=A1sek?= Date: Tue, 1 Oct 2024 12:10:40 +0200 Subject: [PATCH] action attribute for CatalogGraphCard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ladislav Vitásek --- .../src/components/CatalogGraphCard/CatalogGraphCard.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx b/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx index 2276d19757..e7ac8bf15b 100644 --- a/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx +++ b/plugins/catalog-graph/src/components/CatalogGraphCard/CatalogGraphCard.tsx @@ -28,7 +28,7 @@ import { } from '@backstage/plugin-catalog-react'; import { makeStyles, Theme } from '@material-ui/core/styles'; import qs from 'qs'; -import React, { MouseEvent, useCallback } from 'react'; +import React, { MouseEvent, ReactNode, useCallback } from 'react'; import { useNavigate } from 'react-router-dom'; import { catalogGraphRouteRef } from '../../routes'; import { @@ -63,6 +63,7 @@ export const CatalogGraphCard = ( variant?: InfoCardVariants; height?: number; title?: string; + action?: ReactNode; }, ) => { const { @@ -77,6 +78,7 @@ export const CatalogGraphCard = ( entityFilter, height, className, + action, rootEntityNames, onNodeClick, title = 'Relations', @@ -126,6 +128,7 @@ export const CatalogGraphCard = ( return (