We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 158f712 commit b76d39bCopy full SHA for b76d39b
apps/www/components/code-block.tsx
@@ -1,8 +1,5 @@
1
-"use client";
2
-
3
-import { useEffect, useState } from "react";
4
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
5
-import { materialDark } from "react-syntax-highlighter/dist/esm/styles/prism";
+import { oneDark } from "react-syntax-highlighter/dist/esm/styles/prism";
6
7
interface CodeBlockProps {
8
children: React.ReactNode;
@@ -33,7 +30,7 @@ export function CodeBlock({
33
30
return (
34
31
<SyntaxHighlighter
35
32
language={language}
36
- style={materialDark}
+ style={oneDark}
37
showLineNumbers={showLineNumbers}
38
wrapLines={true}
39
customStyle={{
0 commit comments