From bfe188eb5c0e346de1163c91b93d93b4510c01f1 Mon Sep 17 00:00:00 2001
From: David Jay
Date: Fri, 9 Dec 2016 13:17:50 -0500
Subject: [PATCH] Cleaning up from merge.
---
.../containers/Configure/CommentSettings.js | 44 +++++++++----------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/client/coral-admin/src/containers/Configure/CommentSettings.js b/client/coral-admin/src/containers/Configure/CommentSettings.js
index d9628f352..194af720c 100644
--- a/client/coral-admin/src/containers/Configure/CommentSettings.js
+++ b/client/coral-admin/src/containers/Configure/CommentSettings.js
@@ -11,31 +11,31 @@ import {
Checkbox
} from 'react-mdl';
-const updateModeration = (props) => () => {
- const moderation = props.settings.moderation === 'pre' ? 'post' : 'pre';
- props.updateSettings({moderation});
+const updateModeration = (updateSettings, mod) => () => {
+ const moderation = mod === 'pre' ? 'post' : 'pre';
+ updateSettings({moderation});
};
-const updateInfoBoxEnable = (props) => () => {
- const infoBoxEnable = !props.settings.infoBoxEnable;
- props.updateSettings({infoBoxEnable});
+const updateInfoBoxEnable = (updateSettings, infoBox) => () => {
+ const infoBoxEnable = !infoBox;
+ updateSettings({infoBoxEnable});
};
-const updateInfoBoxContent = (props) => (event) => {
+const updateInfoBoxContent = (updateSettings) => (event) => {
const infoBoxContent = event.target.value;
- props.updateSettings({infoBoxContent});
+ updateSettings({infoBoxContent});
};
-const updateClosedMessage = (props) => (event) => {
+const updateClosedMessage = (updateSettings) => (event) => {
const closedMessage = event.target.value;
- props.updateSettings({closedMessage});
+ updateSettings({closedMessage});
};
const CommentSettings = (props) =>
{lang.t('configure.enable-pre-moderation')}
@@ -43,7 +43,7 @@ const CommentSettings = (props) =>
@@ -53,25 +53,25 @@ const CommentSettings = (props) =>
+
+
+
+
+
{lang.t('configure.closed-comments-desc')}
-
-
-
-
-
;
export default CommentSettings;