feat(app): fix build issues

This commit is contained in:
ItzCrazyKns
2026-04-08 23:24:01 +05:30
parent c3ee1988d2
commit a889fdc31e

View File

@@ -7,6 +7,9 @@ import SyntaxHighlighter from 'react-syntax-highlighter';
import darkTheme from './CodeBlockDarkTheme';
import lightTheme from './CodeBlockLightTheme';
const SyntaxHighlighterComponent =
SyntaxHighlighter as unknown as React.ComponentType<any>;
const CodeBlock = ({
language,
children,
@@ -50,13 +53,13 @@ const CodeBlock = ({
/>
)}
</button>
<SyntaxHighlighter
<SyntaxHighlighterComponent
language={language}
style={syntaxTheme}
showInlineLineNumbers
>
{children as string}
</SyntaxHighlighter>
</SyntaxHighlighterComponent>
</div>
);
};