diff --git a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx
index 506a98d012..5ebce80c43 100644
--- a/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx
+++ b/plugins/org/src/components/Cards/Group/GroupProfile/GroupProfileCard.tsx
@@ -22,7 +22,16 @@ import {
} from '@backstage/catalog-model';
import { Avatar, InfoCard } from '@backstage/core';
import { entityRouteParams } from '@backstage/plugin-catalog-react';
-import { Box, Grid, Link, Tooltip, Typography } from '@material-ui/core';
+import {
+ Box,
+ Grid,
+ Link,
+ List,
+ ListItem,
+ ListItemIcon,
+ ListItemText,
+ Tooltip,
+} from '@material-ui/core';
import AccountTreeIcon from '@material-ui/icons/AccountTree';
import EmailIcon from '@material-ui/icons/Email';
import GroupIcon from '@material-ui/icons/Group';
@@ -76,66 +85,57 @@ export const GroupProfileCard = ({
?.map(groupItem => groupItem.target.name)
.toString();
- const childrens = group?.relations
+ const childRelations = group?.relations
?.filter(r => r.type === RELATION_PARENT_OF)
?.map(groupItem => groupItem.target.name);
const displayName = profile?.displayName ?? name;
+ const descriptionHeading = description ?? name;
if (!group) return User not found;
return (
}
- subheader={description}
+ title={}
variant={variant}
>
-
-
-
+
- {profile?.email && (
-
-
-
-
-
-
-
- {profile.email}
-
-
-
- )}
- {parent ? (
-
-
-
-
-
-
+
+ {profile?.email && (
+
+
+
+
+
+
+ {profile.email}
+
+ )}
+ {parent ? (
+
+
+
+
+
+
+
-
-
-
- ) : null}
- {childrens?.length ? (
-
-
-
-
-
-
- {childrens.map((children, index) => (
+
+
+ ) : null}
+ {childRelations?.length ? (
+
+
+
+
+
+
+
+ {childRelations.map((children, index) => (
))}
-
-
-
- ) : null}
+
+
+ ) : null}
+