From 832eef72485bf971cab75b9f9141829fdf079ba8 Mon Sep 17 00:00:00 2001 From: tperehinets Date: Tue, 15 Aug 2023 18:01:47 +0300 Subject: [PATCH] Added title to props for HasCards. Signed-off-by: tperehinets --- .changeset/chilly-parrots-yell.md | 5 +++++ .../components/HasComponentsCard/HasComponentsCard.tsx | 4 ++-- .../src/components/HasResourcesCard/HasResourcesCard.tsx | 4 ++-- .../HasSubcomponentsCard/HasSubcomponentsCard.tsx | 8 ++++++-- .../src/components/HasSystemsCard/HasSystemsCard.tsx | 4 ++-- 5 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 .changeset/chilly-parrots-yell.md diff --git a/.changeset/chilly-parrots-yell.md b/.changeset/chilly-parrots-yell.md new file mode 100644 index 0000000000..fe4c760923 --- /dev/null +++ b/.changeset/chilly-parrots-yell.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog': patch +--- + +Added title to props for `HasCards`. diff --git a/plugins/catalog/src/components/HasComponentsCard/HasComponentsCard.tsx b/plugins/catalog/src/components/HasComponentsCard/HasComponentsCard.tsx index 9654152a5c..e1f25b6835 100644 --- a/plugins/catalog/src/components/HasComponentsCard/HasComponentsCard.tsx +++ b/plugins/catalog/src/components/HasComponentsCard/HasComponentsCard.tsx @@ -30,11 +30,11 @@ export interface HasComponentsCardProps { } export function HasComponentsCard(props: HasComponentsCardProps) { - const { variant = 'gridItem' } = props; + const { variant = 'gridItem', title = 'Has components' } = props; return (