summaryrefslogtreecommitdiff
path: root/src/components/elements/Link.js
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-02-14 13:56:24 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-02-14 13:56:24 +0700
commit635f3de9cff5e4a9c92fd63984f8dfb9d7c6ab24 (patch)
tree0ef444c22d61dcc4babe01a20a6834ef0768ab12 /src/components/elements/Link.js
parenta88dbd7f7b271e78290506fdc61d68adba5d0019 (diff)
no message
Diffstat (limited to 'src/components/elements/Link.js')
-rw-r--r--src/components/elements/Link.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components/elements/Link.js b/src/components/elements/Link.js
index d354bb1b..065b5c9e 100644
--- a/src/components/elements/Link.js
+++ b/src/components/elements/Link.js
@@ -1,9 +1,13 @@
import NextLink from "next/link";
-export default function Link({ children, ...pageProps }) {
+const Link = ({ children, ...props }) => {
return (
- <NextLink {...pageProps} scroll={false}>
+ <NextLink {...props} scroll={false}>
{children}
</NextLink>
)
-} \ No newline at end of file
+}
+
+Link.defaultProps = NextLink.defaultProps
+
+export default Link \ No newline at end of file