Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: use pretty labels
Elijah Potter86d2a8342630
diff --git a/src/harper/LintListItem.tsx b/src/harper/LintListItem.tsxindex 0b3b42a6d..b5cf1832e 100644--- a/src/harper/LintListItem.tsx+++ b/src/harper/LintListItem.tsx@@ -8,7 +8,7 @@ export default function LintListItem({ box }: { box: LintBox }) {<Card size="small" className="harper-lint-card"><CardBody><h2 className={`harper-underline-${box.lint.lint_kind()}`}>- {box.lint.lint_kind()}+ {box.lint.lint_kind_pretty()}</h2><p>{box.lint.message()}</p>diff --git a/src/harper/SidebarLintCard.tsx b/src/harper/SidebarLintCard.tsxdeleted file mode 100644index f7dfdbb6e..000000000--- a/src/harper/SidebarLintCard.tsx+++ /dev/null@@ -1,6 +0,0 @@-import { Lint } from 'harper.js';-import React from 'react';--export default function SidebarLintCard({ lint }: { lint: Lint }) {- return <></>;-}diff --git a/src/harper/SuggestionControl.tsx b/src/harper/SuggestionControl.tsxindex cd7166b70..edac3fee7 100644--- a/src/harper/SuggestionControl.tsx+++ b/src/harper/SuggestionControl.tsx@@ -81,7 +81,7 @@ export default function SuggestionControl({className="harper-popover"><h2 className={`harper-underline-${lint.lint_kind()}`}>- {lint.lint_kind()}+ {lint.lint_kind_pretty()}</h2><p>{lint.message()}</p>{suggestions.map((sug, index) => (