Skip to content

Commit

Permalink
feat: utilize the Next.js Link component (#2749)
Browse files Browse the repository at this point in the history
* chore: include all supported connectors in the create fuels template

* add changeset

* initialise connectors properly

* reset dummy contract id

* Update pnpm-lock.yaml

* enable pr release

* update docs

* Update Forc.toml

* fix formatting

* Update .knip.json

* disable pr release

* Update .knip.json

* revert unrelated changes

* add msg in changeset

* refactor gitignores

* modify changeset

* update fuel-core version

Co-authored-by: Peter Smith <[email protected]>

* Update pnpm-lock.yaml

* update lockfile

* feat: updated to use next Link component

* chore: changeset

---------

Co-authored-by: Dhaiwat <[email protected]>
Co-authored-by: Chad Nehemiah <[email protected]>
Co-authored-by: Sérgio Torres <[email protected]>
  • Loading branch information
4 people committed Jul 10, 2024
1 parent d0b5446 commit 1e2d59f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-jars-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-fuels": patch
---

feat: utilize the Next.js `Link` component
6 changes: 4 additions & 2 deletions templates/nextjs/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 1e2d59f

Please sign in to comment.