Skip to content

Commit

Permalink
fix a few console warnings about code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Oct 12, 2024
1 parent 3aa7ef4 commit c70f8e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/components/messages/AssistantMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ const AssistantMessage: React.FC<AssistantMessageProps> = ({
return (
<Box sx={{ mt: 2, position: "relative" }}>
<CopyBlock
theme={isDark ? atomOneDark : atomOneLight}
text={codeString}
codeBlock={true}
language={language}
showLineNumbers={false}
theme={isDark ? atomOneDark : atomOneLight}
codeBlock
/>
</Box>
);
Expand All @@ -70,7 +70,7 @@ const AssistantMessage: React.FC<AssistantMessageProps> = ({
};

return (
<Box sx={{ display: "flex", justifyContent: "flex-start", mb: 2 }}>
<Box sx={{ display: "flex", justifyContent: "flex-start" }}>
<Paper
elevation={2}
sx={{
Expand Down

0 comments on commit c70f8e0

Please sign in to comment.