From f99e0aba70efad0deb907d8e27f09fc9f527c8a4 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 17 Feb 2023 17:07:50 +0700
Subject: Refactor

---
 src/core/components/elements/Link/Link.jsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 src/core/components/elements/Link/Link.jsx

(limited to 'src/core/components/elements/Link/Link.jsx')

diff --git a/src/core/components/elements/Link/Link.jsx b/src/core/components/elements/Link/Link.jsx
new file mode 100644
index 00000000..a619164d
--- /dev/null
+++ b/src/core/components/elements/Link/Link.jsx
@@ -0,0 +1,17 @@
+import NextLink from "next/link"
+
+const Link = ({ children, ...props }) => {
+  return (
+    <NextLink 
+      {...props} 
+      scroll={false}
+      className={`block font-medium text-red_r-11 ${props?.className}`}
+    >
+      {children}
+    </NextLink>
+  )
+}
+
+Link.defaultProps = NextLink.defaultProps
+
+export default Link
\ No newline at end of file
-- 
cgit v1.2.3


From e33a330786ffbfcd774de00dc697c6dff47faf27 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 20 Feb 2023 14:20:44 +0700
Subject: fix

---
 src/core/components/elements/Link/Link.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/elements/Link/Link.jsx')

diff --git a/src/core/components/elements/Link/Link.jsx b/src/core/components/elements/Link/Link.jsx
index a619164d..897cf6d7 100644
--- a/src/core/components/elements/Link/Link.jsx
+++ b/src/core/components/elements/Link/Link.jsx
@@ -5,7 +5,7 @@ const Link = ({ children, ...props }) => {
     <NextLink 
       {...props} 
       scroll={false}
-      className={`block font-medium text-red_r-11 ${props?.className}`}
+      className={`block font-medium text-red_r-11 ${props?.className || ''}`}
     >
       {children}
     </NextLink>
-- 
cgit v1.2.3


From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 11:03:34 +0700
Subject: prettier

---
 src/core/components/elements/Link/Link.jsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/core/components/elements/Link/Link.jsx')

diff --git a/src/core/components/elements/Link/Link.jsx b/src/core/components/elements/Link/Link.jsx
index 897cf6d7..dbc65338 100644
--- a/src/core/components/elements/Link/Link.jsx
+++ b/src/core/components/elements/Link/Link.jsx
@@ -1,9 +1,9 @@
-import NextLink from "next/link"
+import NextLink from 'next/link'
 
 const Link = ({ children, ...props }) => {
   return (
-    <NextLink 
-      {...props} 
+    <NextLink
+      {...props}
       scroll={false}
       className={`block font-medium text-red_r-11 ${props?.className || ''}`}
     >
@@ -14,4 +14,4 @@ const Link = ({ children, ...props }) => {
 
 Link.defaultProps = NextLink.defaultProps
 
-export default Link
\ No newline at end of file
+export default Link
-- 
cgit v1.2.3

