Skip to content

Commit

Permalink
fix code block copy
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard committed Nov 9, 2023
1 parent 72f74e4 commit 52224fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/components/src/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Code = ({ children, ...props }: any) => {
}}
>
<ClipboardCopy
value={children[0] as string}
value={code}
// If 'showSyntaxHighlighter' is true, force dark theme, otherwise, let the default mode.
theme={match ? 'dark' : undefined}
/>
Expand Down

0 comments on commit 52224fd

Please sign in to comment.