diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-01-23 19:01:28 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-01-23 19:32:15 +0100 |
| commit | 947830904239d51ec9e94971fed6346c1089911f (patch) | |
| tree | c5ea2b6107b428e687562ee64c175fd0589adcb4 /src/components/atoms/links/link.tsx | |
| parent | 74c08b59bb71222b397637c16f84c69451aff685 (diff) | |
chore: make Links and Images compliant with Next.js 13
Diffstat (limited to 'src/components/atoms/links/link.tsx')
| -rw-r--r-- | src/components/atoms/links/link.tsx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/components/atoms/links/link.tsx b/src/components/atoms/links/link.tsx index c8ba273..8991f38 100644 --- a/src/components/atoms/links/link.tsx +++ b/src/components/atoms/links/link.tsx @@ -53,13 +53,12 @@ const Link: FC<LinkProps> = ({ {children} </a> ) : ( - <NextLink href={href}> - <a - hrefLang={lang} - className={`${styles.link} ${downloadClass} ${className}`} - > - {children} - </a> + <NextLink + className={`${styles.link} ${downloadClass} ${className}`} + href={href} + hrefLang={lang} + > + {children} </NextLink> ); }; |
