ampache_react/app/views/LogoutPage.jsx

24 lines
545 B
JavaScript

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 (
<div></div>
);
}
}
const mapDispatchToProps = (dispatch) => ({
actions: bindActionCreators(actionCreators, dispatch)
});
export default connect(null, mapDispatchToProps)(LogoutPage);