Fix Tape navigation from home
This commit is contained in:
parent
9ca0e52411
commit
1d3865c8fc
1 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import Link from "next/link";
|
||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import {
|
import {
|
||||||
createContext,
|
createContext,
|
||||||
|
|
@ -7000,13 +7001,13 @@ export function TerminalAppShell({ children }: { children: ReactNode }) {
|
||||||
{NAV_ITEMS.map((item) => {
|
{NAV_ITEMS.map((item) => {
|
||||||
const active = pathname === item.href;
|
const active = pathname === item.href;
|
||||||
return (
|
return (
|
||||||
<a
|
<Link
|
||||||
className={`terminal-nav-link${active ? " terminal-nav-link-active" : ""}`}
|
className={`terminal-nav-link${active ? " terminal-nav-link-active" : ""}`}
|
||||||
href={item.href}
|
href={item.href}
|
||||||
key={item.href}
|
key={item.href}
|
||||||
>
|
>
|
||||||
{item.label}
|
{item.label}
|
||||||
</a>
|
</Link>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue