diff --git a/package.json b/package.json index 75ebb7fb57..7e394efc9b 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ }, "dependencies": { "@material-ui/core": "^3.1.0", - "@reactioncommerce/components": "^0.39.1", + "@reactioncommerce/components": "0.39.1", "@reactioncommerce/components-context": "^1.0.0", "@segment/snippet": "^4.3.1", "apollo-cache-inmemory": "^1.1.11", diff --git a/src/components/CheckoutSummary/CheckoutSummary.js b/src/components/CheckoutSummary/CheckoutSummary.js index 7cae7fe076..d4ed76dfc8 100644 --- a/src/components/CheckoutSummary/CheckoutSummary.js +++ b/src/components/CheckoutSummary/CheckoutSummary.js @@ -1,9 +1,17 @@ -import React, { Component } from "react"; -import PropTypes from "prop-types"; -import Grid from "@material-ui/core/Grid"; -import CartSummary from "@reactioncommerce/components/CartSummary/v1"; import CartItems from "components/CartItems"; +import CartSummary from "@reactioncommerce/components/CartSummary/v1"; +import Grid from "@material-ui/core/Grid"; +import PropTypes from "prop-types"; +import React, { Component } from "react"; +import { withStyles } from "@material-ui/core/styles"; +const styles = (theme) => ({ + summary: { + borderTop: theme.palette.borders.default + } +}); + +@withStyles(styles, { name: "SkCheckoutSummary" }) class CheckoutSummary extends Component { static propTypes = { cart: PropTypes.shape({ @@ -70,7 +78,7 @@ class CheckoutSummary extends Component { } renderCartSummary() { - const { cart } = this.props; + const { cart, classes } = this.props; if (cart && cart.checkout && cart.checkout.summary) { const { @@ -80,7 +88,7 @@ class CheckoutSummary extends Component { } = cart.checkout.summary; return ( - + { const component = renderer.create(( - + + + )); diff --git a/src/components/CheckoutSummary/__snapshots__/CheckoutSummary.test.js.snap b/src/components/CheckoutSummary/__snapshots__/CheckoutSummary.test.js.snap index 89000b30c3..157a6648a5 100644 --- a/src/components/CheckoutSummary/__snapshots__/CheckoutSummary.test.js.snap +++ b/src/components/CheckoutSummary/__snapshots__/CheckoutSummary.test.js.snap @@ -3,10 +3,10 @@ exports[`basic snapshot 1`] = `