Image -> img (#2087)

This commit is contained in:
pablodanswer
2024-08-08 14:46:42 -07:00
committed by GitHub
parent 1d989f5343
commit f28b930475

View File

@@ -1,7 +1,6 @@
import { useState } from "react"; import { useState } from "react";
import { FullImageModal } from "./FullImageModal"; import { FullImageModal } from "./FullImageModal";
import { buildImgUrl } from "./utils"; import { buildImgUrl } from "./utils";
import Image from "next/image";
export function InMessageImage({ fileId }: { fileId: string }) { export function InMessageImage({ fileId }: { fileId: string }) {
const [fullImageShowing, setFullImageShowing] = useState(false); const [fullImageShowing, setFullImageShowing] = useState(false);
@@ -20,7 +19,7 @@ export function InMessageImage({ fileId }: { fileId: string }) {
<div className="absolute inset-0 bg-gray-200 animate-pulse rounded-lg" /> <div className="absolute inset-0 bg-gray-200 animate-pulse rounded-lg" />
)} )}
<Image <img
width={1200} width={1200}
height={1200} height={1200}
alt="Chat Message Image" alt="Chat Message Image"