1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-05 11:25:09 +01:00
onion/js/components/logout_container.js

34 lines
773 B
JavaScript
Raw Normal View History

2015-07-17 15:02:44 +02:00
'use strict';
import React from 'react';
import UserActions from '../actions/user_actions';
import AscribeSpinner from './ascribe_spinner';
import { setDocumentTitle } from '../utils/dom';
import { getLangText } from '../utils/lang';
2015-10-16 13:10:18 +02:00
2015-07-17 15:02:44 +02:00
let LogoutContainer = React.createClass({
componentDidMount() {
2015-10-07 09:39:30 +02:00
UserActions.logoutCurrentUser();
2015-07-17 15:02:44 +02:00
},
render() {
setDocumentTitle(getLangText('Log out'));
2015-10-16 13:10:18 +02:00
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>
);
2015-07-17 15:02:44 +02:00
}
});
export default LogoutContainer;