From c278e78b73b60e2e3e4a12f7737bfd47930a8466 Mon Sep 17 00:00:00 2001 From: Alireza Hassani Date: Fri, 4 Sep 2026 15:58:43 +0330 Subject: [PATCH] Fix hero slider TypeScript so Next build can see linkUrl. Fallback slides were inferred without linkUrl, so production next build failed on those property accesses. Co-authored-by: Cursor --- app/components/hero-slider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/hero-slider.tsx b/app/components/hero-slider.tsx index af90141..ff27e32 100644 --- a/app/components/hero-slider.tsx +++ b/app/components/hero-slider.tsx @@ -15,7 +15,7 @@ export type HeroSlide = { }; export function HeroSlider({ slides }: { slides?: HeroSlide[] }) { - const items = slides?.length ? slides : fallbackSlides; + const items: HeroSlide[] = slides?.length ? slides : fallbackSlides; const [activeIndex, setActiveIndex] = useState(0); const [isPaused, setIsPaused] = useState(false); const activeSlide = items[activeIndex] ?? items[0];