From 7543271086b491e6f4eb236164eb1805bcbb42a1 Mon Sep 17 00:00:00 2001 From: moh Date: Tue, 22 Sep 2026 10:41:48 +0200 Subject: [PATCH] FIX - Type dock bounce ease as const tuple for framer-motion framer-motion's stricter types reject a cubic-bezier ease inferred as number[]; `as const` makes it a 4-tuple so the production build type check passes. Co-Authored-By: Claude Opus 4.8 --- components/layout/site-dock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout/site-dock.tsx b/components/layout/site-dock.tsx index b5c9393..5d98fe0 100644 --- a/components/layout/site-dock.tsx +++ b/components/layout/site-dock.tsx @@ -66,7 +66,7 @@ export function SiteDock({ defaultLocale, isSuperAdmin = false }: SiteDockProps) : { onClick: () => setBouncing(id), animate: bouncing === id ? { y: [0, -5, 0, -2, 0] } : { y: 0 }, - transition: { duration: 0.35, ease: [0.22, 1, 0.36, 1] }, + transition: { duration: 0.35, ease: [0.22, 1, 0.36, 1] as const }, onAnimationComplete: () => setBouncing((cur) => (cur === id ? null : cur)), };