mirror of
https://github.com/arc53/DocsGPT.git
synced 2026-03-02 00:02:22 +00:00
Update ConversationBubble.tsx
This commit is contained in:
@@ -6,7 +6,7 @@ import { ReactComponent as Like } from './../assets/like.svg';
|
|||||||
import { ReactComponent as Dislike } from './../assets/dislike.svg';
|
import { ReactComponent as Dislike } from './../assets/dislike.svg';
|
||||||
import ReactMarkdown from 'react-markdown';
|
import ReactMarkdown from 'react-markdown';
|
||||||
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
||||||
import { vs } from 'react-syntax-highlighter/dist/cjs/styles/prism';
|
import { vscDarkPlus } from 'react-syntax-highlighter/dist/cjs/styles/prism';
|
||||||
|
|
||||||
const ConversationBubble = forwardRef<
|
const ConversationBubble = forwardRef<
|
||||||
HTMLDivElement,
|
HTMLDivElement,
|
||||||
@@ -65,7 +65,7 @@ const ConversationBubble = forwardRef<
|
|||||||
PreTag="div"
|
PreTag="div"
|
||||||
language={match[1]}
|
language={match[1]}
|
||||||
{...props}
|
{...props}
|
||||||
style={vs}
|
style={vscDarkPlus}
|
||||||
>
|
>
|
||||||
{String(children).replace(/\n$/, '')}
|
{String(children).replace(/\n$/, '')}
|
||||||
</SyntaxHighlighter>
|
</SyntaxHighlighter>
|
||||||
|
|||||||
Reference in New Issue
Block a user