mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
32 lines
610 B
JavaScript
32 lines
610 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
import { History } from 'react-router';
|
|
|
|
import UserActions from '../actions/user_actions';
|
|
import { alt, altWhitelabel, altUser, altThirdParty } from '../alt';
|
|
|
|
|
|
let LogoutContainer = React.createClass({
|
|
|
|
mixins: [History],
|
|
|
|
componentDidMount() {
|
|
UserActions.logoutCurrentUser();
|
|
alt.flush();
|
|
altWhitelabel.flush();
|
|
altUser.flush();
|
|
altThirdParty.flush();
|
|
// kill intercom (with fire)
|
|
window.Intercom('shutdown');
|
|
},
|
|
|
|
render() {
|
|
return null;
|
|
}
|
|
|
|
});
|
|
|
|
|
|
export default LogoutContainer;
|