Create Navigation Array for guests and signed in users

This commit is contained in:
Ray 2023-09-05 10:26:01 +00:00 committed by GitHub
parent f374b056ad
commit c9b97caee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -13,7 +13,18 @@ function App() {
// navigation array // navigation array
const navItems = [ const navItems = [
{ label: "Home", link: "/" }, { 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 ) => { const saySomething = ( word ) => {
alert( word ) alert( word )