Fixed deprecated legacy behavior from motion.
This commit is contained in:
parent
a50b1e3bca
commit
9712e2065f
|
|
@ -93,14 +93,14 @@ export default function AnimatedButton({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link href={href} passHref legacyBehavior>
|
<motion.div {...motionProps} className="inline-block">
|
||||||
<motion.a
|
<Link
|
||||||
|
href={href}
|
||||||
className={`${baseStyles} ${variants[variant]} ${sizes[size]} ${className}`}
|
className={`${baseStyles} ${variants[variant]} ${sizes[size]} ${className}`}
|
||||||
{...motionProps}
|
|
||||||
>
|
>
|
||||||
{buttonContent}
|
{buttonContent}
|
||||||
</motion.a>
|
</Link>
|
||||||
</Link>
|
</motion.div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue