From 956816c4c7514bad4be17fa0349a7b9a3d850ca5 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 7 Jan 2016 18:38:13 +0000 Subject: [PATCH] Remove need for react bootstrap in navbar --- .../navbar/{dropdown-item.js => item.js} | 2 +- static/src/js/components/navbar/navbar.js | 34 +++++++------------ 2 files changed, 13 insertions(+), 23 deletions(-) rename static/src/js/components/navbar/{dropdown-item.js => item.js} (75%) diff --git a/static/src/js/components/navbar/dropdown-item.js b/static/src/js/components/navbar/item.js similarity index 75% rename from static/src/js/components/navbar/dropdown-item.js rename to static/src/js/components/navbar/item.js index 12048a9..bdaa72a 100644 --- a/static/src/js/components/navbar/dropdown-item.js +++ b/static/src/js/components/navbar/item.js @@ -1,6 +1,6 @@ import React from 'react'; -export default class DropdownItem extends React.Component { +export default class Item extends React.Component { render() { return (
  • {this.props.children}
  • diff --git a/static/src/js/components/navbar/navbar.js b/static/src/js/components/navbar/navbar.js index 726f89f..962c8ae 100644 --- a/static/src/js/components/navbar/navbar.js +++ b/static/src/js/components/navbar/navbar.js @@ -1,8 +1,7 @@ import React from 'react'; import Header from './header'; import Dropdown from './dropdown'; -import DropdownItem from './dropdown-item'; -var NavItem = require('react-bootstrap').NavItem; +import Item from './item'; export default class NavBar extends React.Component { render() { @@ -19,27 +18,18 @@ export default class NavBar extends React.Component {