Skip to content

Commit

Permalink
Use phosphor icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywiebe committed Jul 16, 2024
1 parent c673ada commit 19fe692
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions packages/perseus/src/components/lint.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import {StyleSheet, css} from "aphrodite";
import * as React from "react";
import Tooltip from "@khanacademy/wonder-blocks-tooltip";

Check failure on line 3 in packages/perseus/src/components/lint.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

`@khanacademy/wonder-blocks-tooltip` import should occur before import of `aphrodite`

import ExclamationIcon from "@phosphor-icons/core/regular/warning-circle.svg";

Check failure on line 4 in packages/perseus/src/components/lint.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

`@phosphor-icons/core/regular/warning-circle.svg` import should occur before import of `aphrodite`
import {PhosphorIcon} from "@khanacademy/wonder-blocks-icon";
import * as constants from "../styles/constants";

import InlineIcon from "./inline-icon";
import {color, font} from "@khanacademy/wonder-blocks-tokens";

const exclamationIcon = {
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",
height: 12,
width: 12,
} as const;

enum Severity {
Error = 1,
Warning = 2,
Expand Down Expand Up @@ -107,7 +100,7 @@ class Lint extends React.Component<Props> {
>
<span className={css(styles.indicator, severityStyle)}>
{this.props.severity === 1 && (
<InlineIcon {...exclamationIcon} />
<PhosphorIcon icon={ExclamationIcon} />
)}
</span>
</a>
Expand Down

0 comments on commit 19fe692

Please sign in to comment.