Skip to content

Commit

Permalink
update Image
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Sep 3, 2024
1 parent af478fd commit 544564a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/frontend/shared/image-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import CodeCopyBtn from "@/components/shared/CodeCopyBtn";
import { Skeleton } from "@/components/ui/skeleton";
import { isBrowser } from "@/lib/utils";
import Image from "next/image";
import { useEffect, useState } from "react";


Expand Down Expand Up @@ -36,7 +35,7 @@ const ImageCode = ({ alt, title, src, codeStr, className}: { src: string; codeSt
<div className={className}>
<h2 className="text-2xl font-semibold">{title}:</h2>
<div className="max-w-[300px] my-5">
<Image
<img
src={src}
alt={alt}
width={dimensions.width}
Expand Down

0 comments on commit 544564a

Please # to comment.