Illia Kozyr 1 gadu atpakaļ
vecāks
revīzija
9f2a4d2807

BIN
Market GraphQL + Redux/Loading_icon.gif


+ 1 - 0
Market GraphQL + Redux/index.html

@@ -16,6 +16,7 @@
                     />
                 </a>
             </div>
+            
             <div class="qwer" id="qwer">
                 <div>
                     <button id="shoppingCart">Cart</button>

+ 1 - 13
Market GraphQL + Redux/script.js

@@ -219,21 +219,9 @@ const store = createStore(
 if (localStorage.authToken) {
     store.dispatch(actionAuthLogin(localStorage.authToken));
 }
-//const store = createStore(combineReducers({promise: promiseReducer, auth: authReducer, cart: cartReducer}))
+
 store.subscribe(() => console.log(store.getState()));
 
-// const backendURL = "http://shop-roles.node.ed.asmer.org.ua/graphql";
-// const backendURLNotGraphQL = "http://shop-roles.node.ed.asmer.org.ua";
-
-// const gql = (url, query, variables) =>
-//     fetch(url, {
-//         method: "POST",
-//         headers: {
-//             "Content-Type": "application/json",
-//             Accept: "application/json",
-//         },
-//         body: JSON.stringify({ query, variables }),
-//     }).then((res) => res.json());
 
 const actionRootCats = () =>
     actionPromise(

+ 1 - 1
Market GraphQL + Redux/style.css

@@ -286,7 +286,7 @@ flexBlock img {
 .footer {
     padding-top: 20px;
     color: white;
-    min-height: 80px;
+    min-height: 81px;
     background-color: tomato;
     text-align: center;
 }