diff --git a/src/components/ExternalLink.js b/src/components/ExternalLink.js new file mode 100644 index 0000000..f23830e --- /dev/null +++ b/src/components/ExternalLink.js @@ -0,0 +1,5 @@ +import Link from "next/link"; + +export default function ExternalLink({ href, children, ...rest }) { + return { children }; +} diff --git a/src/components/Footer.js b/src/components/Footer.js index 98f24cd..1a03d2f 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -1,5 +1,5 @@ import data from "@/config/app.json"; -import Link from "next/link"; +import ExternalLink from "@/components/ExternalLink"; export default function Footer() { const githubUrl = "https://github.com/EddieHubCommunity/CreatorsRegistry"; @@ -11,7 +11,7 @@ export default function Footer() { © {new Date().getFullYear()} EddieHub All rights reserved | v {data.version} - {githubUrl} + {githubUrl} ); diff --git a/src/components/list/Item.js b/src/components/list/Item.js index 004cf3c..2387eb9 100644 --- a/src/components/list/Item.js +++ b/src/components/list/Item.js @@ -1,10 +1,10 @@ import { ChevronRightIcon } from "@heroicons/react/20/solid"; import Image from "next/image"; -import Link from "next/link"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import Badge from "@/components/Badge"; import socialIcon from "@/config/socialIcon"; +import ExternalLink from "@/components/ExternalLink"; export default function Item({ data }) { return ( @@ -33,10 +33,10 @@ export default function Item({ data }) { )}

- + {data.urlText} - +

{data.description}