Skip to content

Commit

Permalink
Remove useless withShop down in the tree reactioncommerce#2
Browse files Browse the repository at this point in the history
Signed-off-by: Janus Reith <mail@janusreith.de>
  • Loading branch information
Janus Reith authored and janus-reith committed Apr 19, 2020
1 parent 13f59bb commit 7319043
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/components/NavigationMobile/NavigationMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Toolbar from "@material-ui/core/Toolbar";
import Typography from "@material-ui/core/Typography";
import CloseIcon from "mdi-material-ui/Close";
import Link from "components/Link";
import withShop from "containers/shop/withShop";
import NavigationItemMobile from "./NavigationItemMobile";
import NavigationSubMenuMobile from "./NavigationSubMenuMobile";

Expand Down Expand Up @@ -135,4 +134,4 @@ class NavigationMobile extends Component {
}
}

export default withStyles(styles)(withShop(inject("navItems", "uiStore")(observer(NavigationMobile))));
export default withStyles(styles)(inject("navItems", "uiStore")(observer(NavigationMobile)));
5 changes: 2 additions & 3 deletions src/containers/cart/withCart.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from "react";
import PropTypes from "prop-types";
import { Mutation, Query, withApollo } from "react-apollo";
import { Mutation, Query } from "@apollo/react-components";
import { inject, observer } from "mobx-react";
import hoistNonReactStatic from "hoist-non-react-statics";
import cartItemsConnectionToArray from "lib/utils/cartItemsConnectionToArray";
import withShop from "containers/shop/withShop";
import {
createCartMutation,
addCartItemsMutation,
Expand Down Expand Up @@ -492,5 +491,5 @@ export default function withCart(Component) {

hoistNonReactStatic(WithCart, Component);

return withApollo(withShop(inject("cartStore", "authStore")(observer(WithCart))));
return inject("cartStore", "authStore")(observer(WithCart));
}
10 changes: 0 additions & 10 deletions src/containers/shop/shop.gql

This file was deleted.

0 comments on commit 7319043

Please sign in to comment.