mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-04-10 05:44:25 +00:00
feat(app): fix build issues
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user