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

here

); } } class LoginForm extends React.Component { constructor(props) { super(props); this.state = { email: '', password: '', staySignIn: false }; this.handleInputChange = this.handleInputChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleInputChange(event) { const target = event.target; const name = target.name; const value = target.type === 'checkbox' ? target.checked : target.value; this.setState({ [name]: value }); }; handleSubmit(event) { alert('A name was submitted: ' + this.state.value); event.preventDefault(); } render() { return (

); } } // Internationalize setup .... const cache = createIntlCache() // @Todo: Review ... var intl = null; class LoginPage extends React.Component { constructor(props) { super(props); const messages = props.messages; const locale = props.locale; this.state = { locale: locale, message: messages }; intl = createIntl( { locale: locale, defaultLocale: 'en' }, messages, cache ) } render() { return (
{/* */}
); } } export default LoginPage;