Fixed deprecated legacy behavior from motion.

This commit is contained in:
Andrés Mora 2025-12-19 06:40:32 -05:00
parent a50b1e3bca
commit 9712e2065f
1 changed files with 5 additions and 5 deletions

View File

@ -93,14 +93,14 @@ export default function AnimatedButton({
}
return (
<Link href={href} passHref legacyBehavior>
<motion.a
<motion.div {...motionProps} className="inline-block">
<Link
href={href}
className={`${baseStyles} ${variants[variant]} ${sizes[size]} ${className}`}
{...motionProps}
>
{buttonContent}
</motion.a>
</Link>
</motion.div>
);
}