EventsSection icons with color props should be wrapped in Icon (#28826)
* icon fixes Signed-off-by: mfrances <mfrances@redhat.com> * rm autogenerated space Signed-off-by: mfrances <mfrances@redhat.com> --------- Signed-off-by: mfrances <mfrances@redhat.com>
This commit is contained in:
parent
878be98122
commit
98a620e227
1 changed files with 9 additions and 2 deletions
|
@ -15,6 +15,7 @@ import {
|
|||
FlexItem,
|
||||
Form,
|
||||
FormGroup,
|
||||
Icon,
|
||||
PageSection,
|
||||
Tab,
|
||||
TabTitleText,
|
||||
|
@ -75,12 +76,18 @@ const defaultValues: UserEventSearchForm = {
|
|||
const StatusRow = (event: EventRepresentation) =>
|
||||
!event.error ? (
|
||||
<span>
|
||||
<CheckCircleIcon color="green" /> {event.type}
|
||||
<Icon status="success">
|
||||
<CheckCircleIcon />
|
||||
</Icon>
|
||||
{event.type}
|
||||
</span>
|
||||
) : (
|
||||
<Tooltip content={event.error}>
|
||||
<span>
|
||||
<WarningTriangleIcon color="orange" /> {event.type}
|
||||
<Icon status="warning">
|
||||
<WarningTriangleIcon />
|
||||
</Icon>
|
||||
{event.type}
|
||||
</span>
|
||||
</Tooltip>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue