Remove signout option and import NavDropdown in Header.js

This commit is contained in:
Ray 2023-10-10 09:04:25 +00:00 committed by GitHub
parent 29fa4ff5de
commit 1877daa939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,7 @@ function App() {
{ label: "Home", link: "/" },
{ label: "About", link: "/about" },
{ label: "Contact", link: "/contact" },
{ label: "Log out", link: "/signout" }
]
/// application states

View File

@ -1,6 +1,7 @@
import Container from "react-bootstrap/Container"
import Navbar from "react-bootstrap/Navbar"
import Nav from "react-bootstrap/Nav"
import { NavDropdown } from "react-bootstrap/NavDropdown"
export function Header ( props ) {
// props.items is the value of nav state in App.js