diff --git a/packages/react/src/components/LoadedCode.tsx b/packages/react/src/components/LoadedCode.tsx index 237cc86..c458847 100644 --- a/packages/react/src/components/LoadedCode.tsx +++ b/packages/react/src/components/LoadedCode.tsx @@ -1,5 +1,6 @@ import { useEffect, useState } from "react"; -import Highlight from "react-highlight"; +import SyntaxHighlighter from "react-syntax-highlighter"; +import { gruvboxDark } from "react-syntax-highlighter/dist/cjs/styles/hljs"; import { Button } from "@components/Button"; import { useToast } from "@components/Toast"; import { twMerge } from "tailwind-merge"; @@ -59,13 +60,14 @@ export const LoadedCode = ({ /> - {state ?? ""} - + ); };