garrensmith commented on a change in pull request #947: WIP: Refactor CORS addon
URL: https://github.com/apache/couchdb-fauxton/pull/947#discussion_r131640369
 
 

 ##########
 File path: app/addons/cors/components/CORSContainer.js
 ##########
 @@ -0,0 +1,50 @@
+import { connect } from 'react-redux';
+
+import CORSScreen from './CORSScreen';
+import { saveCors, showLoadingBars, fetchAndLoadCORSOptions,
+    showDomainDeleteConfirmation, hideDomainDeleteConfirmation } from 
'../actions';
+
+const mapStateToProps = (state) => {
+    const cors = state.cors;
+    console.log('mapStateToProps-CORS STATE:', state.cors);
+    const newProps = {
+        node: cors.node,
+        corsEnabled: cors.corsEnabled,
+        isAllOrigins: cors.isAllOrigins,
+        isLoading: cors.isLoading,
+        origins: cors.origins,
+        deleteDomainModalVisible: cors.deleteDomainModalVisible,
+        domainToDelete: cors.domainToDelete
+    };
+    console.log('mapStateToProps-NEW PROPS:', newProps);
 
 Review comment:
   Can you remove and return at line 10
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to