import React, { PropTypes } from 'react'; import { Col, CollapsibleNav, Nav, Navbar, NavItem } from 'react-bootstrap'; import navLinks from './links.json'; import FCCNavItem from './NavItem.jsx'; const fCClogo = 'https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg'; const navElements = navLinks.map((navItem, index) => { return ( { navItem.content } ); }); const logoElement = ( learn to code javascript at Free Code Camp logo ); const toggleButton = ( ); export default class extends React.Component { constructor(props) { super(props); } static displayName = 'Nav' static propTypes = { points: PropTypes.number, picture: PropTypes.string, signedIn: PropTypes.bool, username: PropTypes.string } renderPoints(username, points) { if (!username) { return null; } return ( [ { points } ] ); } renderSignin(username, picture) { if (username) { return (
); } else { return ( Sign In ); } } render() { const { username, points, picture } = this.props; return ( ); } }