diff --git a/src/components/Navbar.js b/src/components/Navbar.js index 5d403a3..c479cd1 100644 --- a/src/components/Navbar.js +++ b/src/components/Navbar.js @@ -4,36 +4,36 @@ import Link from 'next/link'; import { useState } from 'react'; const items = [ - {link:"/", name: "Home"}, - {link:"/notes", name: "Notes"}, - {link:"/daily-quote", name: "Daily Quote"}, - {link:"/about", name: "About"}, - {link:"/guestbook", name: "Guestbook"}, - + { link: "/", name: "Home" }, + { link: "/notes", name: "Notes" }, + { link: "/daily-quote", name: "Daily Quote" }, + { link: "/about", name: "About" }, + { link: "/guestbook", name: "Guestbook" }, + { link: "/diary", name: "Diary" } ] export default function Navbar() { const [open, setOpen] = useState(true) return ( <> - { // open && + { + items.map((item, index) => ( +
+ setOpen(false)}> {item.name} +
+
+ )) + } + + } );