From 5af3be07bb17cefaf72f8a3bfb49f3fe2841b901 Mon Sep 17 00:00:00 2001 From: Blake Stoddard Date: Mon, 28 Nov 2022 09:05:36 -0500 Subject: [PATCH] Add a title prop to DependsOnResourcesCard The 'Depends on X' naming scheme can be cumbersome to users and being able to change the component titles in the UI to be clearer is great. The sibling card (DependsOnComponentsCard) already supports a title prop. Signed-off-by: Blake Stoddard --- .../DependsOnResourcesCard/DependsOnResourcesCard.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx b/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx index a0f4d399f9..0ae6601a4a 100644 --- a/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx +++ b/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx @@ -27,14 +27,15 @@ import { /** @public */ export interface DependsOnResourcesCardProps { variant?: InfoCardVariants; + title?: string; } export function DependsOnResourcesCard(props: DependsOnResourcesCardProps) { - const { variant = 'gridItem' } = props; + const { variant = 'gridItem', title = 'Depends on resources' } = props; return (