Skip to content

Commit

Permalink
Remove useless withShop down in the tree
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 018b852 commit 13f59bb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/MiniCart/MiniCart.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ import Badge from "@material-ui/core/Badge";
import Popper from "@material-ui/core/Popper";
import Fade from "@material-ui/core/Fade";
import withCart from "containers/cart/withCart";
import withShop from "containers/shop/withShop";
import trackCartItems from "lib/tracking/trackCartItems";
import track from "lib/tracking/track";
// import trackCartItems from "lib/tracking/trackCartItems";
// import track from "lib/tracking/track";
import variantById from "lib/utils/variantById";
import TRACKING from "lib/tracking/constants";
// import TRACKING from "lib/tracking/constants";

const { CART_VIEWED, PRODUCT_REMOVED } = TRACKING;
// const { CART_VIEWED, PRODUCT_REMOVED } = TRACKING;

const styles = ({ palette, zIndex }) => ({
popper: {
Expand Down Expand Up @@ -224,4 +223,4 @@ class MiniCart extends Component {
}
}

export default withStyles(styles, { name: "SkMiniCart" })(withShop(withCart(inject("uiStore")(observer(MiniCart)))));
export default withStyles(styles, { name: "SkMiniCart" })(withCart(inject("uiStore")(observer(MiniCart))));

0 comments on commit 13f59bb

Please sign in to comment.