import { i18n } from "arm-common"; import agui from "arm-gui"; import React from "react"; import { connect } from "react-redux"; import { AppConstants } from "../../constants/AppConstants.js"; import AccountActions from "./AccountActions.js"; export default class Logout extends React.PureComponent { componentDidMount() { this.props.logout(); } back = () => { this.props.history.push("login"); location.reload(); } render() { return ( {i18n("V2.LOGOUT.CARD_TIT.USER_LOGGED_OUT", "Utente Disconnesso")}

{i18n("V2.LOGOUT.MESS_LOG.SESSION_HAS_BEEN_CLOSED.", "Session has been closed.")}

{i18n("V2.LOGOUT.MESS_LOG.TO_WORK_ON_THE_APPLICATION", "To work on the application click on the \"home\" button")}

{i18n("V2.LOGOUT.BUTTON_TIT_LOG.HOME", "HOME")}
); } } const mapDispatchToProps = (dispatch) => ({ logout: () => dispatch(AccountActions.logout()), }); Logout = connect(null, mapDispatchToProps)(Logout);