import React from 'react'; import { FormattedMessage, IntlProvider, injectIntl } from 'react-intl' import Header from './Header.js'; import Footer from './Footer.js'; class ConfigStatusMessage extends React.Component { constructor(props) { super(props) this.state = { enabled: props.enabled } } render() { let result; if (this.state.enabled===true) { result = (

here

); } else { result = ; } return result; } } class LoginError extends React.Component { constructor(props) { super(props) // @Todo: This must be reviewed to be based on navigation state. // Login error example: http://localhost:8080/c/login?login.error=2 const errorCode = new URLSearchParams(window.location.search).get('login_error'); this.state = { errorCode: errorCode } } render() { let result; const errorCode = this.state.errorCode; if (errorCode) { if (errorCode === 3) { result = (
) } else { result = (
) } } return ({result}); } } class LoginForm extends React.Component { constructor(props) { super(props); this.state = { intl: props.intl } } render() { const intl = this.props.intl; return (

); } } class LoginPage extends React.Component { constructor(props) { super(props); const messages = props.messages; const locale = props.locale; this.state = { locale: locale, messages: messages }; } render() { return (
); } } LoginForm = injectIntl(LoginForm) export default LoginPage;