From c5af4f8cfb039c2110b15e6ed779da12162a590f Mon Sep 17 00:00:00 2001 From: StephDietz Date: Thu, 26 Oct 2023 09:23:13 -0700 Subject: [PATCH] chapter 5 --- .../starter-example/app/ui/dashboard/nav-links.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/dashboard/starter-example/app/ui/dashboard/nav-links.tsx b/dashboard/starter-example/app/ui/dashboard/nav-links.tsx index 338b1c5..f2a67eb 100644 --- a/dashboard/starter-example/app/ui/dashboard/nav-links.tsx +++ b/dashboard/starter-example/app/ui/dashboard/nav-links.tsx @@ -1,12 +1,8 @@ -'use client'; - import { UserGroupIcon, HomeIcon, DocumentDuplicateIcon, } from '@heroicons/react/24/outline'; -import Link from 'next/link'; -import { usePathname } from 'next/navigation'; import clsx from 'clsx'; // Map of links to display in the side navigation. @@ -22,26 +18,21 @@ const links = [ ]; export default function NavLinks() { - const pathname = usePathname(); - return ( <> {links.map((link) => { const LinkIcon = link.icon; return ( -

{link.name}

- + ); })}