Update jobs to remove all panels and wells

This commit is contained in:
Berkeley Martinez
2016-01-15 02:46:25 -08:00
parent 9d3fd2274e
commit b4f574b2be
9 changed files with 35 additions and 131 deletions

View File

@@ -11,7 +11,6 @@ import {
import navLinks from './links.json';
import FCCNavItem from './NavItem.jsx';
const win = typeof window !== 'undefined' ? window : {};
const fCClogo = 'https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg';
const logoElement = (
@@ -29,16 +28,6 @@ const toggleButtonChild = (
</Col>
);
function getDashedName() {
let challengeDashedName;
if (typeof win.localStorage !== 'undefined') {
challengeDashedName = win.localStorage.getItem('currentDashedName');
}
return challengeDashedName && challengeDashedName !== 'undefined' ?
challengeDashedName :
'';
}
export default React.createClass({
displayName: 'Nav',
@@ -76,22 +65,6 @@ export default React.createClass({
});
},
renderLearnBtn() {
return (
<NavItem
href='#'
onClick={ () => {
const challengeDashedName = getDashedName();
const goTo = challengeDashedName ?
'/challenges/' + challengeDashedName :
'/map';
win.location = goTo;
}}>
Learn
</NavItem>
);
},
renderPoints(username, points) {
if (!username) {
return null;
@@ -120,12 +93,11 @@ export default React.createClass({
);
} else {
return (
<FCCNavItem
className='btn signup-btn signup-btn-nav signin-button-nav'
<NavItem
eventKey={ 2 }
href='/login'>
Sign In
</FCCNavItem>
</NavItem>
);
}
},
@@ -144,7 +116,6 @@ export default React.createClass({
className='hamburger-dropdown'
navbar={ true }
pullRight={ true }>
{ this.renderLearnBtn() }
{ this.renderLinks() }
{ this.renderPoints(username, points) }
{ this.renderSignin(username, picture) }