File tree Expand file tree Collapse file tree 2 files changed +18
-193
lines changed
packages/module/src/Severity Expand file tree Collapse file tree 2 files changed +18
-193
lines changed Original file line number Diff line number Diff line change 11import React , { useMemo } from 'react' ;
2+ import { createUseStyles } from 'react-jss'
23import {
34 SeverityCriticalIcon ,
45 SeverityImportantIcon ,
@@ -7,7 +8,13 @@ import {
78 SeverityNoneIcon ,
89 SeverityUndefinedIcon
910} from '@patternfly/react-icons' ;
11+ import { Flex , FlexItem } from '@patternfly/react-core' ;
1012
13+ const useStyles = createUseStyles ( {
14+ severity : {
15+
16+ }
17+ } ) ;
1118const severityLevels = ( severity : SeverityType ) => {
1219 switch ( severity ) {
1320 case 'critical' :
@@ -64,11 +71,17 @@ export const Severity: React.FunctionComponent<SeverityProps> = ({
6471
6572 return (
6673 < React . Fragment >
67- { /* eslint-disable-next-line react/no-unknown-property */ }
68- < i { ...title } { ...props } widget-type = "Severity" widget-id = { label } data-ouia-component-id = { ouiaId } >
69- { severityVariant }
70- </ i >
71- { ! labelHidden && label }
74+ < Flex spaceItems = { { default : 'spaceItemsSm' } } >
75+ < FlexItem >
76+ { /* eslint-disable-next-line react/no-unknown-property */ }
77+ < span { ...title } { ...props } widget-type = "Severity" widget-id = { label } data-ouia-component-id = { ouiaId } >
78+ { severityVariant }
79+ </ span >
80+ </ FlexItem >
81+ < FlexItem >
82+ { ! labelHidden && label }
83+ </ FlexItem >
84+ </ Flex >
7285 </ React . Fragment >
7386 ) ;
7487} ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments