From 947830904239d51ec9e94971fed6346c1089911f Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 23 Jan 2023 19:01:28 +0100
Subject: chore: make Links and Images compliant with Next.js 13

---
 src/components/atoms/buttons/button-link.tsx | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

(limited to 'src/components/atoms/buttons/button-link.tsx')

diff --git a/src/components/atoms/buttons/button-link.tsx b/src/components/atoms/buttons/button-link.tsx
index 989f737..7182d94 100644
--- a/src/components/atoms/buttons/button-link.tsx
+++ b/src/components/atoms/buttons/button-link.tsx
@@ -63,13 +63,12 @@ const ButtonLink: FC<ButtonLinkProps> = ({
       {children}
     </a>
   ) : (
-    <Link href={target}>
-      <a
-        className={`${styles.btn} ${kindClass} ${shapeClass} ${className}`}
-        {...props}
-      >
-        {children}
-      </a>
+    <Link
+      {...props}
+      className={`${styles.btn} ${kindClass} ${shapeClass} ${className}`}
+      href={target}
+    >
+      {children}
     </Link>
   );
 };
-- 
cgit v1.2.3

