From 7d51b5eb0b54f6aaa7df9b73d9ece33b5b8ceb88 Mon Sep 17 00:00:00 2001 From: ayrisdev Date: Tue, 14 Apr 2026 12:41:19 +0300 Subject: [PATCH] Final build fix: Explicitly type motion variants and strengthen null checks --- app/[locale]/fleet/[slug]/page.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/[locale]/fleet/[slug]/page.tsx b/app/[locale]/fleet/[slug]/page.tsx index 15a197c..e7e83a0 100644 --- a/app/[locale]/fleet/[slug]/page.tsx +++ b/app/[locale]/fleet/[slug]/page.tsx @@ -3,9 +3,8 @@ import { yachts } from "../../../data/yachts"; import { notFound } from "next/navigation"; import { Link } from "@/i18n/routing"; -import { motion } from "framer-motion"; +import { motion, Variants, AnimatePresence } from "framer-motion"; import { use, useState, useCallback, useEffect } from "react"; -import { AnimatePresence } from "framer-motion"; import { CldImage } from "next-cloudinary"; import { useTranslations, useLocale } from "next-intl"; @@ -48,14 +47,15 @@ export default function YachtPage({ params }: PageProps) { if (!yacht) { notFound(); + return null; } - const fadeInUp = { + const fadeInUp: Variants = { hidden: { opacity: 0, y: 40 }, visible: { opacity: 1, y: 0, transition: { duration: 0.8, ease: "easeOut" } } }; - const staggerContainer = { + const staggerContainer: Variants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: 0.15 } } };