Skip to content

Commit b76d39b

Browse files
committed
fix: code highlighting oneDark
1 parent 158f712 commit b76d39b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

apps/www/components/code-block.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
"use client";
2-
3-
import { useEffect, useState } from "react";
41
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
5-
import { materialDark } from "react-syntax-highlighter/dist/esm/styles/prism";
2+
import { oneDark } from "react-syntax-highlighter/dist/esm/styles/prism";
63

74
interface CodeBlockProps {
85
children: React.ReactNode;
@@ -33,7 +30,7 @@ export function CodeBlock({
3330
return (
3431
<SyntaxHighlighter
3532
language={language}
36-
style={materialDark}
33+
style={oneDark}
3734
showLineNumbers={showLineNumbers}
3835
wrapLines={true}
3936
customStyle={{

0 commit comments

Comments
 (0)