import React from 'react';
import { Link } from 'react-router';
import Navbar from '../../src/Navbar';
import Nav from '../../src/Nav';

const NAV_LINKS = {
  'introduction': {
    link: 'introduction',
    title: 'Introduction'
  },
  'getting-started': {
    link: 'getting-started',
    title: 'Getting started'
  },
  'components': {
    link: 'components',
    title: 'Components'
  }
};

const NavMain = React.createClass({
  propTypes: {
    activePage: React.PropTypes.string
  },

  render() {
    let brand = <Link to='home' className="navbar-brand">React Bootstrap</Link>;
    let links = Object.keys(NAV_LINKS).map(this.renderNavItem).concat([
      <li key='github-link'>
        <a href='https://github.com/react-bootstrap/react-bootstrap' target='_blank'>GitHub</a>
      </li>,
      <li key='new-logo-survey'>
        <a href='https://www.surveymonkey.com/s/X7Q9VX7' style={{color: '#CECE00'}} target='_blank'>Take the New Logo Survey!</a>
      </li>
    ]);

    return (
      <Navbar componentClass='header' brand={brand} staticTop className="bs-docs-nav" role="banner" toggleNavKey={0}>
        <Nav className="bs-navbar-collapse" role="navigation" eventKey={0} id="top">
          {links}
        </Nav>
      </Navbar>
    );
  },

  renderNavItem(linkName) {
    let link = NAV_LINKS[linkName];

    return (
        <li className={this.props.activePage === linkName ? 'active' : null} key={linkName}>
          <Link to={link.link}>{link.title}</Link>
        </li>
      );
  }
});

export default NavMain;

@@ -778,184 +778,8 @@
 /a%3E%0A
-      %3C/li%3E,%0A      %3Cli key='new-logo-survey'%3E%0A        %3Ca href='https://www.surveymonkey.com/s/X7Q9VX7' style=%7B%7Bcolor: '#CECE00'%7D%7D target='_blank'%3ETake the New Logo Survey!%3C/a%3E%0A
     

Remove new logo survey link