Skip to content

Commit

Permalink
remove dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Aug 27, 2024
1 parent ecd07bc commit d7f98fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/frontend/shared/image-code.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"use client";
import CodeCopyBtn from "@/components/shared/CodeCopyBtn";
import { Skeleton } from "@/components/ui/skeleton";
import { isBrowser } from "@/lib/utils";
import dynamic from 'next/dynamic';
import Image from "next/image";
import { useEffect, useState } from "react";

const CodeCopyBtn = dynamic(() => import('../../shared/CodeCopyBtn'), { ssr: false });


const ImageCode = ({ alt, title, src, codeStr, className}: { src: string; codeStr: string; title: string; alt: string; className?: string; }) => {
const [dimensions, setDimensions] = useState<{ width: number; height: number } | null>(null);
Expand Down

0 comments on commit d7f98fc

Please # to comment.