fix(jsx): prevent bootstrap from injecting props to react primitive

This commit is contained in:
Berkeley Martinez
2016-10-27 16:32:13 -07:00
committed by Stuart Taylor
parent 484dc743dc
commit 675438b075
2 changed files with 23 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ import {
import navLinks from './links.json';
import AvatarPointsNavItem from './Avatar-Points-Nav-Item.jsx';
import NoPropsPassthrough from '../../utils/No-Props-Passthrough.jsx';
const fCClogo = 'https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg';
@@ -82,14 +83,16 @@ export default class extends React.Component {
renderMapLink(isOnMap, toggleMapDrawer) {
if (isOnMap) {
return (
<li role='presentation'>
<a
href='#'
onClick={ this.handleMapClickOnMap }
>
Map
</a>
</li>
<NoPropsPassthrough>
<li role='presentation'>
<a
href='#'
onClick={ this.handleMapClickOnMap }
>
Map
</a>
</li>
</NoPropsPassthrough>
);
}
return (