import React from "react/addons";

import Resolver from "./Resolver";

class ResolverContext extends React.Component {
  getChildContext() {
    const resolver = this.props.resolver || this.context.resolver;

    return { resolver };
  }

  render() {
    return React.addons.cloneWithProps(this.props.element, this.props);
  }
}

ResolverContext.childContextTypes = {
  resolver: React.PropTypes.any,
};

ResolverContext.contextTypes = {
  resolver: React.PropTypes.any,
};

ResolverContext.propTypes = {
  resolver: React.PropTypes.any,
};

export default ResolverContext;

@@ -21,15 +21,8 @@
 eact
-/addons
 %22;%0A%0A
@@ -259,29 +259,20 @@
 act.
-addons.cloneWithProps
+cloneElement
 (thi
@@ -290,20 +290,8 @@
 ment
-, this.props
 );%0A 

Switch from React.addons.cloneWithProps to React.cloneElement