FIX - Type dock bounce ease as const tuple for framer-motion
CI / quality (push) Waiting to run

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 <noreply@anthropic.com>
This commit is contained in:
moh
2026-09-22 10:41:48 +02:00
co-authored by Claude Opus 4.8
parent 3c9af70f98
commit 7543271086
+1 -1
View File
@@ -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)),
};