react-cmf
Advanced tools
Comparing version 0.86.0 to 0.87.0
@@ -103,3 +103,3 @@ { | ||
}, | ||
"version": "0.86.0", | ||
"version": "0.87.0", | ||
"dependencies": { | ||
@@ -106,0 +106,0 @@ "hoist-non-react-statics": "^1.2.0" |
@@ -120,3 +120,3 @@ import React, { PropTypes, createElement } from 'react'; | ||
mergeProps, | ||
...rest, | ||
...rest | ||
}) { | ||
@@ -123,0 +123,0 @@ return function wrapWithCMF(WrappedComponent) { |
@@ -85,3 +85,3 @@ /** | ||
onProps.forEach((name) => { | ||
props[name] = (event) => this.onEvent(event, name); | ||
props[name] = event => this.onEvent(event, name); | ||
}); | ||
@@ -88,0 +88,0 @@ return React.cloneElement(child, props); |
@@ -69,3 +69,3 @@ /** | ||
return connect( | ||
(state) => mapStateToViewProps(state, { view }) | ||
state => mapStateToViewProps(state, { view }) | ||
)(component); | ||
@@ -96,3 +96,3 @@ } | ||
const WithView = item.component; | ||
item.component = (props) => <WithView view={item.view} {...props} />; | ||
item.component = props => <WithView view={item.view} {...props} />; | ||
item.component.displayName = 'WithView'; | ||
@@ -120,3 +120,3 @@ item.component.propTypes = { | ||
if (item.childRoutes) { | ||
item.childRoutes.forEach((route) => loadComponents(context, route)); | ||
item.childRoutes.forEach(route => loadComponents(context, route)); | ||
} | ||
@@ -123,0 +123,0 @@ if (item.indexRoute) { |
@@ -33,3 +33,3 @@ /** | ||
Object.keys(attachedProps).forEach( | ||
key => { | ||
(key) => { | ||
attachedProps[key] = attachRef(state, attachedProps[key]); | ||
@@ -36,0 +36,0 @@ } |
@@ -34,5 +34,5 @@ /** | ||
}; | ||
const mapStateToProps = (state) => ({ routes: state.cmf.settings.routes }); | ||
const mapStateToProps = state => ({ routes: state.cmf.settings.routes }); | ||
export default connect( | ||
mapStateToProps | ||
)(UIRouter); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
322998
88
4881