Skip to content

Commit 02b79ee

Browse files
committed
Npm refresh
1 parent b63c8b6 commit 02b79ee

File tree

3 files changed

+51
-58
lines changed

3 files changed

+51
-58
lines changed

components/Cart/CartPage/CartItemsContainer.component.jsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ const CartItemsContainer = () => {
8686
<div className="container flex flex-wrap items-center mx-auto">
8787
{requestError && <div className="p-6 mx-auto mt-5">Error ... </div>}
8888

89-
90-
91-
92-
9389
{cart ? (
9490
<div className="p-6 mx-auto mt-5">
9591
<RegularCart

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

utils/gql/GQL_MUTATIONS.js

Lines changed: 45 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,67 @@
11
import { gql } from '@apollo/client';
22
export const ADD_TO_CART = gql`
33
mutation ($input: AddToCartInput!) {
4-
54
addToCart(input: $input) {
6-
cartItem {
7-
key
8-
product {
9-
node {
10-
id
11-
databaseId
12-
name
13-
description
14-
type
15-
onSale
16-
slug
17-
averageRating
18-
reviewCount
19-
image {
5+
cartItem {
6+
key
7+
product {
8+
node {
209
id
21-
sourceUrl
22-
altText
23-
}
24-
galleryImages {
25-
nodes {
10+
databaseId
11+
name
12+
description
13+
type
14+
onSale
15+
slug
16+
averageRating
17+
reviewCount
18+
image {
2619
id
2720
sourceUrl
2821
altText
2922
}
23+
galleryImages {
24+
nodes {
25+
id
26+
sourceUrl
27+
altText
28+
}
29+
}
3030
}
3131
}
32-
}
33-
variation {
34-
node {
35-
id
36-
databaseId
37-
name
38-
description
39-
type
40-
onSale
41-
price
42-
regularPrice
43-
salePrice
44-
image {
32+
variation {
33+
node {
4534
id
46-
sourceUrl
47-
altText
48-
}
49-
attributes {
50-
nodes {
35+
databaseId
36+
name
37+
description
38+
type
39+
onSale
40+
price
41+
regularPrice
42+
salePrice
43+
image {
5144
id
52-
attributeId
53-
name
54-
value
45+
sourceUrl
46+
altText
47+
}
48+
attributes {
49+
nodes {
50+
id
51+
attributeId
52+
name
53+
value
54+
}
5555
}
5656
}
5757
}
58+
quantity
59+
total
60+
subtotal
61+
subtotalTax
5862
}
59-
quantity
60-
total
61-
subtotal
62-
subtotalTax
6363
}
6464
}
65-
66-
67-
}
6865
`;
6966
export const CHECKOUT_MUTATION = gql`
7067
mutation CHECKOUT_MUTATION($input: CheckoutInput!) {

0 commit comments

Comments
 (0)