mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01:00
cleanup header
This commit is contained in:
parent
b536af29be
commit
d298486a6f
@ -9,8 +9,6 @@ import UserStore from '../stores/user_store';
|
|||||||
import WhitelabelActions from '../actions/whitelabel_actions';
|
import WhitelabelActions from '../actions/whitelabel_actions';
|
||||||
import WhitelabelStore from '../stores/whitelabel_store';
|
import WhitelabelStore from '../stores/whitelabel_store';
|
||||||
|
|
||||||
import Alt from '../alt';
|
|
||||||
|
|
||||||
import Nav from 'react-bootstrap/lib/Nav';
|
import Nav from 'react-bootstrap/lib/Nav';
|
||||||
import Navbar from 'react-bootstrap/lib/Navbar';
|
import Navbar from 'react-bootstrap/lib/Navbar';
|
||||||
import CollapsibleNav from 'react-bootstrap/lib/CollapsibleNav';
|
import CollapsibleNav from 'react-bootstrap/lib/CollapsibleNav';
|
||||||
@ -31,7 +29,7 @@ let Header = React.createClass({
|
|||||||
showAddWork: React.PropTypes.bool
|
showAddWork: React.PropTypes.bool
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [Router.Navigation, Router.State],
|
mixins: [Router.State],
|
||||||
|
|
||||||
getDefaultProps() {
|
getDefaultProps() {
|
||||||
return {
|
return {
|
||||||
@ -55,14 +53,6 @@ let Header = React.createClass({
|
|||||||
WhitelabelStore.unlisten(this.onChange);
|
WhitelabelStore.unlisten(this.onChange);
|
||||||
},
|
},
|
||||||
|
|
||||||
handleLogout(){
|
|
||||||
UserActions.logoutCurrentUser();
|
|
||||||
Alt.flush();
|
|
||||||
// kill intercom (with fire)
|
|
||||||
window.Intercom('shutdown');
|
|
||||||
this.transitionTo('login');
|
|
||||||
},
|
|
||||||
|
|
||||||
getLogo(){
|
getLogo(){
|
||||||
let logo = (
|
let logo = (
|
||||||
<span>
|
<span>
|
||||||
|
Loading…
Reference in New Issue
Block a user