ampache_react/app/views/LogoutPage.jsx
Phyks (Lucas Verney) d8a7d4f66a Rework webplayer
Full rework of webplayer. Webplayer is back to its previous working
state, and ready for further improvements.
2016-08-10 23:50:23 +02:00

31 lines
639 B
JavaScript

// NPM imports
import React, { Component } from "react";
import { bindActionCreators } from "redux";
import { connect } from "react-redux";
// Actions
import * as actionCreators from "../actions";
/**
* Logout page
*/
export class LogoutPage extends Component {
componentWillMount() {
// Logout when component is mounted
this.props.actions.logoutAndRedirect();
}
render() {
return (
<div></div>
);
}
}
const mapDispatchToProps = (dispatch) => ({
actions: bindActionCreators(actionCreators, dispatch),
});
export default connect(null, mapDispatchToProps)(LogoutPage);