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 <blake.stoddard@epicgames.com>
This commit is contained in:
Blake Stoddard
2022-11-28 09:05:36 -05:00
parent 50d7039368
commit 5af3be07bb
@@ -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 (
<RelatedEntitiesCard
variant={variant}
title="Depends on resources"
title={title}
entityKind="Resource"
relationType={RELATION_DEPENDS_ON}
columns={resourceEntityColumns}