1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 16:48:04 +02:00

cleanup header

This commit is contained in:
vrde 2015-07-17 15:09:38 +02:00
parent b536af29be
commit d298486a6f

View File

@ -9,8 +9,6 @@ import UserStore from '../stores/user_store';
import WhitelabelActions from '../actions/whitelabel_actions';
import WhitelabelStore from '../stores/whitelabel_store';
import Alt from '../alt';
import Nav from 'react-bootstrap/lib/Nav';
import Navbar from 'react-bootstrap/lib/Navbar';
import CollapsibleNav from 'react-bootstrap/lib/CollapsibleNav';
@ -31,7 +29,7 @@ let Header = React.createClass({
showAddWork: React.PropTypes.bool
},
mixins: [Router.Navigation, Router.State],
mixins: [Router.State],
getDefaultProps() {
return {
@ -55,14 +53,6 @@ let Header = React.createClass({
WhitelabelStore.unlisten(this.onChange);
},
handleLogout(){
UserActions.logoutCurrentUser();
Alt.flush();
// kill intercom (with fire)
window.Intercom('shutdown');
this.transitionTo('login');
},
getLogo(){
let logo = (
<span>