27 lines
592 B
React
27 lines
592 B
React
|
import React, { Component } from "react";
|
||
|
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 mapStateToProps = (state) => ({
|
||
|
});
|
||
|
|
||
|
const mapDispatchToProps = (dispatch) => ({
|
||
|
actions: bindActionCreators(actionCreators, dispatch)
|
||
|
});
|
||
|
|
||
|
export default connect(mapStateToProps, mapDispatchToProps)(LogoutPage);
|