Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ReaJason committed Jan 27, 2025
1 parent d6ceb1b commit 9b87180
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/components/code-viewer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button, ButtonProps } from "@/components/ui/button.tsx";
import { Button, type ButtonProps } from "@/components/ui/button.tsx";
import { Check, Copy } from "lucide-react";
import { HTMLProps, ReactNode, useEffect, useState } from "react";
import { type HTMLProps, type ReactNode, useEffect, useState } from "react";
import { CopyToClipboard } from "react-copy-to-clipboard";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { materialDark } from "react-syntax-highlighter/dist/esm/styles/prism";
Expand All @@ -11,7 +11,7 @@ interface CopyButtonProps extends ButtonProps {
src?: string;
}

export function CopyButton({ value, className, src, variant = "ghost", ...props }: CopyButtonProps) {
export function CopyButton({ value }: CopyButtonProps) {
const [hasCopied, setHasCopied] = useState(false);

useEffect(() => {
Expand Down

0 comments on commit 9b87180

Please sign in to comment.