chore(catalog): export RelatedEntitiesCard component

Signed-off-by: djamaile <rdjamaile@gmail.com>
This commit is contained in:
Djamaile Rahamat
2022-01-17 16:47:21 +01:00
committed by djamaile
parent aa9030d313
commit 61ded2a863
3 changed files with 18 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': patch
---
Export the `RelatedEntitiesCard` component which is helpful in case you want to model custom relations between entities
@@ -34,7 +34,7 @@ type Props<T extends Entity> = {
variant?: 'gridItem';
title: string;
columns: TableColumn<T>[];
entityKind: string;
entityKind?: string;
relationType: string;
emptyMessage: string;
emptyHelpLink: string;
+12
View File
@@ -186,3 +186,15 @@ export const EntitySystemDiagramCard = catalogPlugin.provide(
},
}),
);
export const EntityGenericRelationshipCard = catalogPlugin.provide(
createComponentExtension({
name: 'EntityGenericRelationshipCard',
component: {
lazy: () =>
import('./components/RelatedEntitiesCard').then(
m => m.RelatedEntitiesCard,
),
},
}),
);