From c9b97caee10dd6557b9055a7927747390714bfaa Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 5 Sep 2023 10:26:01 +0000 Subject: [PATCH] Create Navigation Array for guests and signed in users --- src/App.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/App.js b/src/App.js index e4735d6..cbb345d 100644 --- a/src/App.js +++ b/src/App.js @@ -13,7 +13,18 @@ function App() { // navigation array const navItems = [ { label: "Home", link: "/" }, + { label: "About", link: "/about" }, + { label: "Contact", link: "/contact" }, + { label: "Create Account", link: "/signup" }, + { label: "Log in", link: "/signin" }, ] +// navigation for authenticated user +const AuthNavItems = [ + { label: "Home", link: "/" }, + { label: "About", link: "/about" }, + { label: "Contact", link: "/contact" }, + { label: "Log out", link: "/signout"} +] const saySomething = ( word ) => { alert( word )