summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Link
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-05-17 16:08:45 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-05-17 16:08:45 +0700
commitaf35f7c31c65b6fb42c67424674f1f8acd68a5a1 (patch)
treef5966873c96c8b55f5158d2b64d6e694668820cd /src/core/components/elements/Link
parent6d57dbfd4e27eacfd1604b8d8326ee75326c0dd5 (diff)
Fix banner url
Diffstat (limited to 'src/core/components/elements/Link')
-rw-r--r--src/core/components/elements/Link/Link.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/components/elements/Link/Link.jsx b/src/core/components/elements/Link/Link.jsx
index f6b39d45..716ce325 100644
--- a/src/core/components/elements/Link/Link.jsx
+++ b/src/core/components/elements/Link/Link.jsx
@@ -9,6 +9,8 @@ import NextLink from 'next/link'
* @returns {JSX.Element} - Rendered `Link` component.
*/
const Link = ({ children, ...props }) => {
+ if (!props?.href || props?.href == false) return children
+
return (
<NextLink
{...props}