add entity switch case

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2023-01-12 07:45:25 +00:00
parent cebe24ef1d
commit 9fc65bbc38
4 changed files with 39 additions and 3 deletions
@@ -60,6 +60,7 @@ import {
isComponentType,
isKind,
isOrphan,
hasLabels,
} from '@internal/plugin-catalog-customized';
import {
Direction,
@@ -365,9 +366,13 @@ const overviewContent = (
<EntityLinksCard />
</Grid>
<Grid item md={4} xs={12}>
<EntityLabelsCard />
</Grid>
<EntitySwitch>
<EntitySwitch.Case if={hasLabels}>
<Grid item md={4} xs={12}>
<EntityLabelsCard />
</Grid>
</EntitySwitch.Case>
</EntitySwitch>
{cicdCard}