Create Navigation Array for guests and signed in users
This commit is contained in:
parent
f374b056ad
commit
c9b97caee1
11
src/App.js
11
src/App.js
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue