Skip to content

Commit

Permalink
Remove Legacy behaviour
Browse files Browse the repository at this point in the history
- fixes prisma#4974
  • Loading branch information
mayank1513 committed Jul 21, 2023
1 parent e485fa0 commit b6c9a24
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions typescript/rest-nextjs-api-routes/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,19 @@ export default function Header() {
return (
<nav>
<div className={styles.left}>
<Link href="/" legacyBehavior>
<a className={styles.bold} data-active={isActive('/')}>
Blog
</a>
<Link href="/" className={styles.bold} data-active={isActive('/')}>
Blog
</Link>
<Link href="/drafts" legacyBehavior>
<a data-active={isActive('/drafts')}>Drafts</a>
<Link href="/drafts" data-active={isActive('/drafts')}>
Drafts
</Link>
</div>
<div className={styles.right}>
<Link href="/add-author" legacyBehavior>
<a data-active={isActive('/add-author')}>Add Author</a>
<Link href="/add-author" data-active={isActive('/add-author')}>
Add Author
</Link>
<Link href="/create" legacyBehavior>
<a data-active={isActive('/create')}>+ Create draft</a>
<Link href="/create" data-active={isActive('/create')}>
+ Create draft
</Link>
</div>
</nav>
Expand Down

0 comments on commit b6c9a24

Please sign in to comment.