From e534c6d72700e14a2211f981350b70639711f97a Mon Sep 17 00:00:00 2001 From: Jakub Knetl Date: Wed, 27 Dec 2023 14:24:09 +0100 Subject: [PATCH] Chapter 5 - use next Link for navigation --- app/ui/dashboard/nav-links.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/ui/dashboard/nav-links.tsx b/app/ui/dashboard/nav-links.tsx index 72fa462..8a8212b 100644 --- a/app/ui/dashboard/nav-links.tsx +++ b/app/ui/dashboard/nav-links.tsx @@ -4,6 +4,8 @@ import { DocumentDuplicateIcon, } from '@heroicons/react/24/outline'; +import Link from 'next/link'; + // Map of links to display in the side navigation. // Depending on the size of the application, this would be stored in a database. const links = [ @@ -22,14 +24,14 @@ export default function NavLinks() { {links.map((link) => { const LinkIcon = link.icon; return ( -

{link.name}

-
+ ); })}