2016-07-25 23:22:44 +02:00
|
|
|
import { Component } from "react";
|
2016-07-07 23:23:18 +02:00
|
|
|
import { bindActionCreators } from "redux";
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
|
|
|
|
import * as actionCreators from "../actions";
|
|
|
|
|
|
|
|
export class LogoutPage extends Component {
|
|
|
|
componentDidMount () {
|
|
|
|
this.props.actions.logoutAndRedirect();
|
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
|
|
|
null
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const mapDispatchToProps = (dispatch) => ({
|
|
|
|
actions: bindActionCreators(actionCreators, dispatch)
|
|
|
|
});
|
|
|
|
|
2016-07-25 23:22:44 +02:00
|
|
|
export default connect(null, mapDispatchToProps)(LogoutPage);
|