Guest User

Untitled

a guest
Feb 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. import React from 'react';
  2. import { Navbar, NavItem, Nav, FormGroup, FormControl, Button } from 'react-bootstrap';
  3. import { Link, withRouter } from 'react-router-dom';
  4. import './navbar.css';
  5.  
  6. const NavBar = (props) => {
  7. return (<Navbar inverse collapseOnSelect>
  8. <Navbar.Header>
  9. <Navbar.Brand>
  10. <a href="#brand">{props.brand}</a>
  11. </Navbar.Brand>
  12. <Navbar.Toggle />
  13. </Navbar.Header>
  14. <Navbar.Collapse>
  15. <Navbar.Form pullLeft>
  16. <FormGroup>
  17. <FormControl type="text" placeholder="Search" />
  18. </FormGroup>{' '}
  19. <Button type="submit">Submit</Button>
  20. </Navbar.Form>
  21. <Nav pullRight>
  22. <NavItem >
  23. <Link to="/" className="link">Home</Link>
  24. </NavItem>
  25. <NavItem >
  26. <Link to="/about" className="link">About</Link>
  27. </NavItem>
  28. </Nav>
  29. </Navbar.Collapse>
  30. </Navbar>);
  31. }
  32.  
  33. export default NavBar;
Add Comment
Please, Sign In to add comment