Skip to content

Commit a7e21f5

Browse files
author
Vadim Rogov
committed
fix cart
1 parent a31a6eb commit a7e21f5

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/components/ContactUs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ContactUs extends Component {
5555
popupHeader={"Server say:"}
5656
renderPopupContentHandler={() => (
5757
<img
58-
class="img-responsive"
58+
className="img-responsive"
5959
src="https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LtZJGF3BnjoLSeYeXE_%2F-LuOTLcQnAaCxuZPlxc2%2F-LuOVsoiOc6D7i8HNglF%2F2300883_3.jpg?alt=media&token=0c6d76e7-f6d9-4c08-ab92-5d7032935575"
6060
alt="no"
6161
/>

src/components/cart.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from "react";
22
import { ItemCart } from "./ItemCart";
3-
import { CommonBtn } from "./CommonLinkBtn";
3+
import { CommonLinkBtn } from "./CommonLinkBtn";
44

55
class Cart extends Component {
66
renderItems = () => {
@@ -37,9 +37,9 @@ class Cart extends Component {
3737
<div className="cart-total-price">${this.calculatePrice()}</div>
3838
</div>
3939
{!this.props.items.length ? (
40-
<CommonBtn linkTo={"/"} linkName={"Back to shop"} />
40+
<CommonLinkBtn linkTo={"/"} linkName={"Back to shop"} />
4141
) : (
42-
<CommonBtn linkTo={"/checkout"} linkName={"Checkout"} />
42+
<CommonLinkBtn linkTo={"/checkout"} linkName={"Checkout"} />
4343
)}
4444
</div>
4545
</div>

src/components/checkout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from "react";
2-
import { CommonBtn } from "./CommonLinkBtn";
2+
import { CommonLinkBtn } from "./CommonLinkBtn";
33

44
class Checkout extends Component {
55
componentDidMount() {
@@ -11,7 +11,7 @@ class Checkout extends Component {
1111
<div className="page-element">
1212
<div className="checkout-page">
1313
<h2>Successful!</h2>
14-
<CommonBtn linkTo={"/"} linkName={"Back to shop"} />
14+
<CommonLinkBtn linkTo={"/"} linkName={"Back to shop"} />
1515
</div>
1616
</div>
1717
</div>

src/components/filter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export class Filter extends Component {
66
return (
77
<div className="filter-manufacturer">
88
<input
9+
key={e.index}
910
type="checkbox"
1011
checked={e.selected}
1112
onChange={() => this.props.setManufacturerHandler(i)}

0 commit comments

Comments
 (0)