Fixed deprecated legacy behavior from motion.
This commit is contained in:
parent
a50b1e3bca
commit
9712e2065f
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue