Skip to content

Commit

Permalink
feat: add next link component to create-fuels (#2647)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk>
  • Loading branch information
mvares and petertonysmith94 authored Jul 1, 2024
1 parent 78927e4 commit a0e7420
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/early-squids-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-fuels": patch
---

feat: add next link component to `create-fuels`
6 changes: 4 additions & 2 deletions apps/create-fuels-counter-guide/src/components/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import NextLink from 'next/link';

export const Link = ({
href,
children,
Expand All @@ -10,12 +12,12 @@ export const Link = ({
target?: string;
}) => {
return (
<a
<NextLink
href={href}
className={`text-fuel-green hover:underline ${className}`}
target={target}
>
{children}
</a>
</NextLink>
);
};

0 comments on commit a0e7420

Please sign in to comment.