Skip to content

Commit

Permalink
chore: remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwisecodes committed Nov 14, 2024
1 parent 84bb13a commit 58057c4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions apps/nextjs/src/components/AppComponents/Chat/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const MemoizedReactMarkdownWithStyles = ({
);
},
code(props) {
const { className, children, inline, ...restProps } = props;
const { className, children, ...restProps } = props;
if (children && Array.isArray(children) && children.length) {
if (children[0] === "▍") {
return (
Expand All @@ -187,14 +187,6 @@ export const MemoizedReactMarkdownWithStyles = ({

const match = /language-(\w+)/.exec(className || "");

if (inline) {
return (
<code className={className} {...restProps}>
{children}
</code>
);
}

return (
<CodeBlock
key={Math.random()}
Expand Down

0 comments on commit 58057c4

Please sign in to comment.