6
6
Popover ,
7
7
Alert ,
8
8
AlertVariant ,
9
- Icon ,
10
9
} from '@patternfly/react-core' ;
11
10
import { TableVariant , RowWrapperProps , RowWrapper , IRow } from '@patternfly/react-table' ;
12
11
import { Table , TableHeader , TableBody } from '@patternfly/react-table/deprecated' ;
@@ -22,10 +21,9 @@ import FormatDiskCheckbox, {
22
21
isInDiskSkipFormattingList ,
23
22
} from '../hosts/FormatDiskCheckbox' ;
24
23
import { fileSize } from '../../utils' ;
25
- import { PopoverIcon } from '../ui' ;
24
+ import { PopoverIcon , UiIcon } from '../ui' ;
26
25
import { useTranslation } from '../../hooks/use-translation-wrapper' ;
27
26
import { TFunction } from 'i18next' ;
28
- import { global_warning_color_100 as warningColor } from '@patternfly/react-tokens/dist/js/global_warning_color_100' ;
29
27
30
28
interface DisksTableProps extends WithTestID {
31
29
canEditDisks ?: ( host : Host ) => boolean ;
@@ -117,9 +115,7 @@ const DiskName = ({
117
115
{ isIndented && < span style = { { width : '1rem' , display : 'inline-block' } } /> }
118
116
{ isInDiskSkipFormattingList ( host , disk . id ) && (
119
117
< Popover bodyContent = { < SkipFormattingDisk /> } minWidth = "20rem" maxWidth = "30rem" >
120
- < Icon size = "sm" status = "warning" >
121
- < ExclamationTriangleIcon color = { warningColor . value } />
122
- </ Icon >
118
+ < UiIcon size = "sm" status = "warning" icon = { < ExclamationTriangleIcon /> } />
123
119
</ Popover >
124
120
) }
125
121
{ ' ' }
@@ -134,9 +130,7 @@ const DiskName = ({
134
130
maxWidth = "30rem"
135
131
data-testid = "disk-limitations-popover"
136
132
>
137
- < Icon size = "sm" status = "warning" >
138
- < ExclamationTriangleIcon color = { warningColor . value } />
139
- </ Icon >
133
+ < UiIcon size = "sm" status = "warning" icon = { < ExclamationTriangleIcon /> } />
140
134
</ Popover >
141
135
</ >
142
136
) }
0 commit comments