diff options
Diffstat (limited to 'src/components/atoms/links')
| -rw-r--r-- | src/components/atoms/links/link.tsx | 13 | ||||
| -rw-r--r-- | src/components/atoms/links/nav-link.tsx | 8 |
2 files changed, 9 insertions, 12 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> ); }; diff --git a/src/components/atoms/links/nav-link.tsx b/src/components/atoms/links/nav-link.tsx index 7c6fede..66ee570 100644 --- a/src/components/atoms/links/nav-link.tsx +++ b/src/components/atoms/links/nav-link.tsx @@ -24,11 +24,9 @@ export type NavLinkProps = { */ const NavLink: FC<NavLinkProps> = ({ href, label, logo }) => { return ( - <Link href={href}> - <a className={styles.link}> - {logo} - {label} - </a> + <Link className={styles.link} href={href}> + {logo} + {label} </Link> ); }; |
