File tree 1 file changed +3
-10
lines changed
packages/perseus/src/components
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 1
1
import { StyleSheet , css } from "aphrodite" ;
2
2
import * as React from "react" ;
3
3
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" ;
5
6
import * as constants from "../styles/constants" ;
6
-
7
- import InlineIcon from "./inline-icon" ;
8
7
import { color , font } from "@khanacademy/wonder-blocks-tokens" ;
9
8
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
-
16
9
enum Severity {
17
10
Error = 1 ,
18
11
Warning = 2 ,
@@ -107,7 +100,7 @@ class Lint extends React.Component<Props> {
107
100
>
108
101
< span className = { css ( styles . indicator , severityStyle ) } >
109
102
{ this . props . severity === 1 && (
110
- < InlineIcon { ... exclamationIcon } />
103
+ < PhosphorIcon icon = { ExclamationIcon } />
111
104
) }
112
105
</ span >
113
106
</ a >
You can’t perform that action at this time.
0 commit comments