1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 09:50:31 +01:00
onion/js/components/logout_container.js
2016-06-06 16:07:16 +02:00

34 lines
785 B
JavaScript

'use strict';
import React from 'react';
import AscribeSpinner from './ascribe_spinner';
import UserActions from '../actions/user_actions';
import { getLangText } from '../utils/lang_utils';
import { setDocumentTitle } from '../utils/dom_utils';
let LogoutContainer = React.createClass({
componentDidMount() {
UserActions.logoutCurrentUser();
},
render() {
setDocumentTitle(getLangText('Log out'));
return (
<div className="ascribe-loading-position">
<AscribeSpinner color='dark-blue' size='lg'/>
<h3 className="text-center">
{getLangText('Just a sec, we\'re logging you out...')}
</h3>
</div>
);
}
});
export default LogoutContainer;