Skip to content

Commit

Permalink
mapProps -> withProps
Browse files Browse the repository at this point in the history
  • Loading branch information
jshimko committed Jul 12, 2017
1 parent 99d1093 commit 2da4cf2
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions client/modules/accounts/containers/auth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from "lodash";
import React, { Component } from "react";
import PropTypes from "prop-types";
import { mapProps } from "recompose";
import { withProps } from "recompose";
import { registerComponent } from "@reactioncommerce/reaction-components";
import { Meteor } from "meteor/meteor";
import { Accounts } from "meteor/accounts-base";
Expand Down Expand Up @@ -214,6 +214,6 @@ const props = {
currentRoute: Router.current()
};

registerComponent("AuthContainer", AuthContainer, mapProps(props));
registerComponent("AuthContainer", AuthContainer, withProps(props));

export default mapProps(props)(AuthContainer);
export default withProps(props)(AuthContainer);
6 changes: 3 additions & 3 deletions client/modules/accounts/containers/mainDropdown.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mapProps } from "recompose";
import { withProps } from "recompose";
import { registerComponent } from "@reactioncommerce/reaction-components";
import { Meteor } from "meteor/meteor";
import { Accounts } from "meteor/accounts-base";
Expand Down Expand Up @@ -139,6 +139,6 @@ const props = {
userShortcuts
};

registerComponent("MainDropdown", MainDropdown, mapProps(props));
registerComponent("MainDropdown", MainDropdown, withProps(props));

export default mapProps(props)(MainDropdown);
export default withProps(props)(MainDropdown);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { compose, mapProps } from "recompose";
import { compose, withProps } from "recompose";
import { registerComponent } from "@reactioncommerce/reaction-components";
import { $ } from "meteor/jquery";
import { Session } from "meteor/session";
Expand Down Expand Up @@ -97,11 +97,11 @@ function composer(props, onData) {

// register the containers
registerComponent("CartDrawer", CartDrawer, [
mapProps(handlers),
withProps(handlers),
composeWithTracker(composer)
]);

export default compose(
mapProps(handlers),
withProps(handlers),
composeWithTracker(composer)
)(CartDrawer);
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Velocity from "velocity-animate";
import { compose, mapProps } from "recompose";
import { compose, withProps } from "recompose";
import { registerComponent } from "@reactioncommerce/reaction-components";
import { Cart } from "/lib/collections";
import { composeWithTracker } from "/lib/api/compose";
Expand All @@ -26,11 +26,11 @@ const composer = (props, onData) => {
};

registerComponent("CartIcon", CartIcon, [
mapProps(handlers),
withProps(handlers),
composeWithTracker(composer)
]);

export default compose(
mapProps(handlers),
withProps(handlers),
composeWithTracker(composer)
)(CartIcon);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mapProps } from "recompose";
import { withProps } from "recompose";
import { registerComponent } from "@reactioncommerce/reaction-components";
import { $ } from "meteor/jquery";
import { Session } from "meteor/session";
Expand All @@ -13,6 +13,6 @@ const handlers = {
}
};

registerComponent("CartPanel", CartPanel, mapProps(handlers));
registerComponent("CartPanel", CartPanel, withProps(handlers));

export default mapProps(handlers)(CartPanel);
export default withProps(handlers)(CartPanel);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { compose, mapProps } from "recompose";
import { compose, withProps } from "recompose";
import { registerComponent } from "@reactioncommerce/reaction-components";
import { composeWithTracker } from "/lib/api/compose";
import { Meteor } from "meteor/meteor";
Expand Down Expand Up @@ -30,10 +30,10 @@ const handlers = {

registerComponent("Notification", Notification, [
composeWithTracker(composer),
mapProps(handlers)
withProps(handlers)
]);

export default compose(
composeWithTracker(composer),
mapProps(handlers)
withProps(handlers)
)(Notification);
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mapProps } from "recompose";
import { withProps } from "recompose";
import { registerComponent } from "@reactioncommerce/reaction-components";
import { composeWithTracker } from "/lib/api/compose";
import { Meteor } from "meteor/meteor";
Expand Down Expand Up @@ -30,7 +30,7 @@ function composer(props, onData) {

registerComponent("NotificationRoute", NotificationRoute, [
composeWithTracker(composer),
mapProps(actions)
withProps(actions)
]);

export default composeWithTracker(composer)(NotificationRoute);

0 comments on commit 2da4cf2

Please sign in to comment.