mirror of
https://github.com/reiyua/RaysMovieClub.git
synced 2026-01-20 15:37:47 +00:00
Create Navigation Array for guests and signed in users
This commit is contained in:
parent
f374b056ad
commit
c9b97caee1
1 changed files with 11 additions and 0 deletions
11
src/App.js
11
src/App.js
|
|
@ -13,6 +13,17 @@ 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 ) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue