From f2b4b5563660fe9f79647d427d0b05664a1f7c2c Mon Sep 17 00:00:00 2001 From: Prasetya Aria Wibawa Date: Tue, 20 Sep 2022 18:45:04 +0700 Subject: [PATCH] consistently show parent and child relations in group profile card Signed-off-by: Prasetya Aria Wibawa --- .changeset/breezy-pots-worry.md | 5 ++ .../Group/GroupProfile/GroupProfileCard.tsx | 50 ++++++++++--------- 2 files changed, 31 insertions(+), 24 deletions(-) create mode 100644 .changeset/breezy-pots-worry.md diff --git a/.changeset/breezy-pots-worry.md b/.changeset/breezy-pots-worry.md new file mode 100644 index 0000000000..48d5ae6c80 --- /dev/null +++ b/.changeset/breezy-pots-worry.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-org': patch +--- + +consistently show parent and child relations in group profile card diff --git a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx index 174067275d..1b18261328 100644 --- a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx +++ b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx @@ -149,38 +149,40 @@ export const GroupProfileCard = (props: { variant?: InfoCardVariants }) => { )} - - {parentRelations.length ? ( - - - - - - - + + + + + + + + {parentRelations.length ? ( - - - ) : null} - - {childRelations.length ? ( - - - - - - - + ) : ( + '-' + )} + + + + + + + + + + {childRelations.length ? ( - - - ) : null} + ) : ( + '-' + )} + +