|
|
@ -6,7 +6,7 @@ import { domain } from 'flavours/glitch/initial_state';
|
|
|
|
import { fetchServer } from 'flavours/glitch/actions/server';
|
|
|
|
import { fetchServer } from 'flavours/glitch/actions/server';
|
|
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
closed_registrations_message: state.getIn(['server', 'server', 'registrations', 'closed_registrations_message']),
|
|
|
|
message: state.getIn(['server', 'server', 'registrations', 'message']),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
export default @connect(mapStateToProps)
|
|
|
|
export default @connect(mapStateToProps)
|
|
|
@ -20,11 +20,11 @@ class ClosedRegistrationsModal extends ImmutablePureComponent {
|
|
|
|
render () {
|
|
|
|
render () {
|
|
|
|
let closedRegistrationsMessage;
|
|
|
|
let closedRegistrationsMessage;
|
|
|
|
|
|
|
|
|
|
|
|
if (this.props.closed_registrations_message) {
|
|
|
|
if (this.props.message) {
|
|
|
|
closedRegistrationsMessage = (
|
|
|
|
closedRegistrationsMessage = (
|
|
|
|
<p
|
|
|
|
<p
|
|
|
|
className='prose'
|
|
|
|
className='prose'
|
|
|
|
dangerouslySetInnerHTML={{ __html: this.props.closed_registrations_message }}
|
|
|
|
dangerouslySetInnerHTML={{ __html: this.props.message }}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|