Skip to content

Commit

Permalink
🐛 Add missing label group for app drawer (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 authored Jan 5, 2024
1 parent 30ec412 commit 9d52013
Showing 1 changed file with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
Divider,
Tooltip,
Label,
LabelGroup,
} from "@patternfly/react-core";
import spacing from "@patternfly/react-styles/css/utilities/Spacing/spacing";
import {
Expand Down Expand Up @@ -210,16 +211,18 @@ export const ApplicationDetailDrawer: React.FC<
{t("terms.archetypesAssessed")}
</DescriptionListTerm>
<DescriptionListDescription>
{assessedArchetypes?.length ? (
assessedArchetypes.map((assessedArchetype) => (
<ArchetypeItem
key={assessedArchetype?.id}
archetype={assessedArchetype}
/>
))
) : (
<EmptyTextMessage message={t("terms.none")} />
)}
<LabelGroup>
{assessedArchetypes?.length ? (
assessedArchetypes.map((assessedArchetype) => (
<ArchetypeItem
key={assessedArchetype?.id}
archetype={assessedArchetype}
/>
))
) : (
<EmptyTextMessage message={t("terms.none")} />
)}
</LabelGroup>
</DescriptionListDescription>
</DescriptionListGroup>

Expand All @@ -228,16 +231,18 @@ export const ApplicationDetailDrawer: React.FC<
{t("terms.archetypesReviewed")}
</DescriptionListTerm>
<DescriptionListDescription>
{reviewedArchetypes?.length ? (
reviewedArchetypes.map((reviewedArchetype) => (
<ArchetypeItem
key={reviewedArchetype?.id}
archetype={reviewedArchetype}
/>
))
) : (
<EmptyTextMessage message={t("terms.none")} />
)}
<LabelGroup>
{reviewedArchetypes?.length ? (
reviewedArchetypes.map((reviewedArchetype) => (
<ArchetypeItem
key={reviewedArchetype?.id}
archetype={reviewedArchetype}
/>
))
) : (
<EmptyTextMessage message={t("terms.none")} />
)}
</LabelGroup>
</DescriptionListDescription>
</DescriptionListGroup>
</DescriptionList>
Expand Down

0 comments on commit 9d52013

Please sign in to comment.