diff --git a/components/articles/ImageViewer.tsx b/components/articles/ImageViewer.tsx index 8c6a65f..ca06736 100644 --- a/components/articles/ImageViewer.tsx +++ b/components/articles/ImageViewer.tsx @@ -1,6 +1,7 @@ "use client"; import { useEffect, useRef } from "react"; +import Image from "next/image"; import Zoomist from "zoomist"; import "zoomist/css"; @@ -13,7 +14,7 @@ export default function ImageViewer({ src, alt }: { src: string, alt: string }) new Zoomist(container.current, { maxScale: 5, bounds: true, - pinchable: true, + pinchable: true }); } }); @@ -22,7 +23,14 @@ export default function ImageViewer({ src, alt }: { src: string, alt: string })
- {alt} + {alt}