Skip to content

Commit

Permalink
Fix next/link codemod errors in with-turbopack (#42203)
Browse files Browse the repository at this point in the history
x-ref: #41913

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
  • Loading branch information
ijjk committed Oct 31, 2022
1 parent 86b3e7d commit b7a9b06
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion examples/with-turbopack/app/GlobalNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default function GlobalNav() {
'block rounded-md px-3 py-2 text-sm font-medium hover:bg-zinc-800 hover:text-zinc-100',
{ 'text-zinc-400': !isActive, 'text-white': isActive },
)}
legacyBehavior
>
{item.name}
</Link>
Expand Down
1 change: 0 additions & 1 deletion examples/with-turbopack/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default function Page() {
href={`/${item.slug}`}
key={item.name}
className="block space-y-1.5 rounded-lg border border-white/10 px-4 py-3 hover:border-white/20"
legacyBehavior
>
<div>{item.name}</div>

Expand Down
2 changes: 1 addition & 1 deletion examples/with-turbopack/ui/SectionLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const SectionLink = ({
href: string;
text: string;
}) => (
<Link href={href} className="group block space-y-2" legacyBehavior>
<Link href={href} className="group block space-y-2">
<div className="-m-[5px] rounded-[20px] border border-zinc-900 p-1 transition group-hover:border-blue-600">
{children}
</div>
Expand Down
1 change: 0 additions & 1 deletion examples/with-turbopack/ui/TabNavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const TabNavItem = ({
!isActive,
'bg-vercel-blue text-white': isActive,
})}
legacyBehavior
>
{children}
</Link>
Expand Down

0 comments on commit b7a9b06

Please sign in to comment.