Skip to content

Commit 564bdbc

Browse files
committed
systemd: Update icon colors
1 parent 99f733c commit 564bdbc

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

pkg/systemd/page-status.jsx

+16-3
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,27 @@ import {
3636
import "./page-status.scss";
3737

3838
import { page_status } from "notifications";
39+
import { Icon } from "@patternfly/react-core";
3940

4041
function icon_for_type(type) {
4142
if (type == "error")
42-
return <ExclamationCircleIcon className="ct-exclamation-circle" />;
43+
return (
44+
<Icon status="danger">
45+
<ExclamationCircleIcon />
46+
</Icon>
47+
);
4348
else if (type == "warning")
44-
return <ExclamationTriangleIcon className="ct-exclamation-triangle" />;
49+
return (
50+
<Icon status="warning">
51+
<ExclamationTriangleIcon />
52+
</Icon>
53+
);
4554
else
46-
return <InfoCircleIcon className="ct-info-circle" />;
55+
return (
56+
<Icon status="info">
57+
<InfoCircleIcon />
58+
</Icon>
59+
);
4760
}
4861

4962
function get_pficon(name) {

0 commit comments

Comments
 (0)