Skip to content

Instantly share code, notes, and snippets.

@sverhagen
Created January 12, 2017 05:06
Show Gist options
  • Save sverhagen/3503d6ac19f2594711f7fb48470f5520 to your computer and use it in GitHub Desktop.
Save sverhagen/3503d6ac19f2594711f7fb48470f5520 to your computer and use it in GitHub Desktop.
import React from "react";
import {IndexLink, Link} from "react-router";
import "./Header.scss";
import {Navbar, Nav, NavItem, NavDropdown, MenuItem} from "react-bootstrap";
import {LinkContainer} from "react-router-bootstrap";
export default class Header extends React.Component {
constructor(props) {
super(props)
}
render() {
return <Navbar className="navbar-fixed-top">
<Navbar.Header>
<Navbar.Brand>
<IndexLink to='/' className="navbar-brand">Emcee</IndexLink>
</Navbar.Brand>
</Navbar.Header>
<Navbar.Collapse>
<Nav bsStyle="pills" activeKey="1">
<LinkContainer to="/" onlyActiveOnIndex={true}>
<NavItem>Home</NavItem>
</LinkContainer>
<LinkContainer to="/email">
<NavItem>Email</NavItem>
</LinkContainer>
<NavDropdown title="Service" id="nav-dropdown">
<LinkContainer to="/service">
<MenuItem>Service</MenuItem>
</LinkContainer>
<LinkContainer to="servicegroup">
<MenuItem>Service Group</MenuItem>
</LinkContainer>
</NavDropdown>
</Nav>
<Navbar.Text pullRight>
Some text
</Navbar.Text>
</Navbar.Collapse>
</Navbar>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment