Skip to content

Commit

Permalink
fixed TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
LckyLke committed Oct 28, 2024
1 parent 1d59ef2 commit 7c01fd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/components/ChatPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,9 @@ const ChatPopup: React.FC<ChatPopupProps> = ({ username }) => {
const match = /language-(\w+)/.exec(className || '');
return match ? (
<SyntaxHighlighter
style={oneDark}
style={oneDark as any}
language={match[1]}
PreTag="div"
{...props}
>
{String(children).replace(/\n$/, '')}
</SyntaxHighlighter>
Expand Down

0 comments on commit 7c01fd9

Please sign in to comment.