Skip to content

Commit 19fe692

Browse files
committed
Use phosphor icon
1 parent c673ada commit 19fe692

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

packages/perseus/src/components/lint.tsx

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
import {StyleSheet, css} from "aphrodite";
22
import * as React from "react";
33
import Tooltip from "@khanacademy/wonder-blocks-tooltip";
4-
4+
import ExclamationIcon from "@phosphor-icons/core/regular/warning-circle.svg";
5+
import {PhosphorIcon} from "@khanacademy/wonder-blocks-icon";
56
import * as constants from "../styles/constants";
6-
7-
import InlineIcon from "./inline-icon";
87
import {color, font} from "@khanacademy/wonder-blocks-tokens";
98

10-
const exclamationIcon = {
11-
path: "M6 11a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0-9a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1z",
12-
height: 12,
13-
width: 12,
14-
} as const;
15-
169
enum Severity {
1710
Error = 1,
1811
Warning = 2,
@@ -107,7 +100,7 @@ class Lint extends React.Component<Props> {
107100
>
108101
<span className={css(styles.indicator, severityStyle)}>
109102
{this.props.severity === 1 && (
110-
<InlineIcon {...exclamationIcon} />
103+
<PhosphorIcon icon={ExclamationIcon} />
111104
)}
112105
</span>
113106
</a>

0 commit comments

Comments
 (0)