2015-07-17 15:02:44 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import React from 'react';
|
2015-10-01 11:16:38 +02:00
|
|
|
import { History } from 'react-router';
|
2015-07-17 15:02:44 +02:00
|
|
|
|
|
|
|
import UserActions from '../actions/user_actions';
|
2015-10-07 09:31:38 +02:00
|
|
|
import { alt, altWhitelabel, altUser, altThirdParty } from '../alt';
|
2015-07-17 15:02:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
let LogoutContainer = React.createClass({
|
2015-10-01 11:16:38 +02:00
|
|
|
mixins: [History],
|
2015-07-17 15:02:44 +02:00
|
|
|
|
|
|
|
componentDidMount() {
|
2015-10-07 09:39:30 +02:00
|
|
|
UserActions.logoutCurrentUser();
|
|
|
|
alt.flush();
|
|
|
|
altWhitelabel.flush();
|
|
|
|
altUser.flush();
|
|
|
|
altThirdParty.flush();
|
|
|
|
// kill intercom (with fire)
|
|
|
|
window.Intercom('shutdown');
|
2015-07-17 15:02:44 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export default LogoutContainer;
|