import React from 'react'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { Link } from 'react-router-dom'; import RegistrationForm from '../auth_login/components/registration_form'; import SiteBanner from '../public_layout/components/site_banner'; const mapStateToProps = (state, props) => ({ instance: state.get('instance'), }); class LandingPage extends ImmutablePureComponent { renderClosed = () => { const { instance } = this.props; return (

{instance.get('title')} }} />
); } render() { const { instance } = this.props; const isOpen = instance.get('registrations', false) === true; return (
{instance.get('description')}
{isOpen ? : this.renderClosed()}
); } } export default connect(mapStateToProps)(LandingPage);