Commit 564bdbc 1 parent 99f733c commit 564bdbc Copy full SHA for 564bdbc
File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,27 @@ import {
36
36
import "./page-status.scss" ;
37
37
38
38
import { page_status } from "notifications" ;
39
+ import { Icon } from "@patternfly/react-core" ;
39
40
40
41
function icon_for_type ( type ) {
41
42
if ( type == "error" )
42
- return < ExclamationCircleIcon className = "ct-exclamation-circle" /> ;
43
+ return (
44
+ < Icon status = "danger" >
45
+ < ExclamationCircleIcon />
46
+ </ Icon >
47
+ ) ;
43
48
else if ( type == "warning" )
44
- return < ExclamationTriangleIcon className = "ct-exclamation-triangle" /> ;
49
+ return (
50
+ < Icon status = "warning" >
51
+ < ExclamationTriangleIcon />
52
+ </ Icon >
53
+ ) ;
45
54
else
46
- return < InfoCircleIcon className = "ct-info-circle" /> ;
55
+ return (
56
+ < Icon status = "info" >
57
+ < InfoCircleIcon />
58
+ </ Icon >
59
+ ) ;
47
60
}
48
61
49
62
function get_pficon ( name ) {
You can’t perform that action at this time.
0 commit comments