summaryrefslogtreecommitdiffstats
path: root/queries/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'queries/index.js')
-rw-r--r--queries/index.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/queries/index.js b/queries/index.js
index 87dd5d1..8b7897f 100644
--- a/queries/index.js
+++ b/queries/index.js
@@ -176,3 +176,21 @@ export const REMOVE_FROM_CART_MUTATION = gql`
}
}
`;
+
+export const GET_CART_STATE = gql`
+ query {
+ ui {
+ isCartOpen
+ }
+ }
+`;
+
+export const UPDATE_CART_STATE = gql`
+ mutation updateCartState($isCartOpen: Boolean!) {
+ updateCartState(isCartOpen: $isCartOpen) {
+ ui {
+ isCartOpen
+ }
+ }
+ }
+`;