refactor: remove TypeScript error comments from CodeBlock component

This commit is contained in:
javayhu 2025-08-24 11:32:43 +08:00
parent fc53045d99
commit 395f753025

View File

@ -43,7 +43,6 @@ export const CodeBlock = ({
{...props}
>
<div className="relative">
{/* @ts-expect-error - SyntaxHighlighter is not a valid JSX component */}
<SyntaxHighlighter
className="overflow-hidden dark:hidden"
codeTagProps={{
@ -67,7 +66,6 @@ export const CodeBlock = ({
>
{code}
</SyntaxHighlighter>
{/* @ts-expect-error - SyntaxHighlighter is not a valid JSX component */}
<SyntaxHighlighter
className="hidden overflow-hidden dark:block"
codeTagProps={{