Skip to content

Commit 44bd62a

Browse files
committed
Feat: Replace img with Image component for optimized loading in PerformerSection
1 parent 424f750 commit 44bd62a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/widget/performers.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Lenis from "@studio-freight/lenis";
66
import { useGSAP } from "@gsap/react";
77
import { tedxsjecAssetsPrefix } from "@/lib/utils";
88
import { Dialog, DialogContent } from "@/components/ui/dialog";
9+
import Image from "next/image";
910
gsap.registerPlugin(ScrollTrigger);
1011

1112
interface PerformerSection {
@@ -156,7 +157,7 @@ export default function Component() {
156157
onClick={() => handleSectionClick(section)}
157158
>
158159
{section.images.map((image, imageIndex) => (
159-
<img
160+
<Image
160161
key={imageIndex}
161162
src={image}
162163
alt={`Performer section ${sectionIndex + 1}, slide ${imageIndex + 1} of ${section.images.length}`}

0 commit comments

Comments
 (0)