Skip to content

Commit

Permalink
fix(deployment error): try to fix prettycode error
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidroohi92 committed Dec 19, 2024
1 parent e6857ff commit 196ae87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/PrettyCode.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { CSSProperties, useEffect, useRef } from "react";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { Prism, SyntaxHighlighterProps } from "react-syntax-highlighter";
// @ts-ignore
import xonokai from "react-syntax-highlighter/dist/esm/styles/prism/xonokai.js";

const SyntaxHighlighter = Prism as any as React.FC<SyntaxHighlighterProps>;

interface Props {
language: "solidity" | "typescript" | "javascript" | "rust" | "go";
code: string;
Expand Down

0 comments on commit 196ae87

Please sign in to comment.