Skip to content

Commit 5bbd91b

Browse files
committed
JS lang text should be uppercase, reverting to Prism instead of PrismLight
1 parent 69c33fc commit 5bbd91b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/CodePreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
1+
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
22

33
import { useAppContext } from "@contexts/AppContext";
44

src/contexts/AppContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919

2020
// tokens
2121
const defaultLanguage: LanguageType = {
22-
lang: "JavaScript",
22+
lang: "JAVASCRIPT",
2323
icon: "/icons/javascript.svg",
2424
};
2525

0 commit comments

Comments
 (0)