Remove signout option and import NavDropdown in Header.js
This commit is contained in:
parent
29fa4ff5de
commit
1877daa939
|
@ -40,7 +40,7 @@ function App() {
|
||||||
{ label: "Home", link: "/" },
|
{ label: "Home", link: "/" },
|
||||||
{ label: "About", link: "/about" },
|
{ label: "About", link: "/about" },
|
||||||
{ label: "Contact", link: "/contact" },
|
{ label: "Contact", link: "/contact" },
|
||||||
{ label: "Log out", link: "/signout" }
|
|
||||||
]
|
]
|
||||||
|
|
||||||
/// application states
|
/// application states
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import Container from "react-bootstrap/Container"
|
import Container from "react-bootstrap/Container"
|
||||||
import Navbar from "react-bootstrap/Navbar"
|
import Navbar from "react-bootstrap/Navbar"
|
||||||
import Nav from "react-bootstrap/Nav"
|
import Nav from "react-bootstrap/Nav"
|
||||||
|
import { NavDropdown } from "react-bootstrap/NavDropdown"
|
||||||
|
|
||||||
export function Header ( props ) {
|
export function Header ( props ) {
|
||||||
// props.items is the value of nav state in App.js
|
// props.items is the value of nav state in App.js
|
||||||
|
|
Loading…
Reference in New Issue