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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user