Skip to content

Commit

Permalink
Run Link codemod
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaDawsonDev committed Jun 28, 2024
1 parent 4c4019d commit 89df6d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
10 changes: 4 additions & 6 deletions components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export const Footer = () => {
<div className={styles.footerTop}>
<ul className={styles.footerList}>
<li>
<Link href="/about">
<a className={styles.footerLink}>About the maintainers</a>
<Link href="/about" className={styles.footerLink}>
About the maintainers
</Link>
</li>

Expand All @@ -35,10 +35,8 @@ export const Footer = () => {
</a>
</li>
<li>
<Link href="/">
<a className={styles.footerLink}>
Accessibility Statement - coming soon
</a>
<Link href="/" className={styles.footerLink}>
Accessibility Statement - coming soon
</Link>
</li>
</ul>
Expand Down
11 changes: 5 additions & 6 deletions components/Nav/NavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ export const NavItem = ({
const isLinkActive = activeNavLink === page.href
return (
<li className={`${styles.navListItem} ${isLinkActive ? "active" : ""}`}>
<Link href={page.href}>
<a
onClick={handleNavClick}
aria-current={isLinkActive ? "page" : false}>
{page.name}
</a>
<Link
href={page.href}
onClick={handleNavClick}
aria-current={isLinkActive ? "page" : false}>
{page.name}
</Link>
</li>
)
Expand Down

0 comments on commit 89df6d3

Please sign in to comment.