File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
55import { useQuery , useMutation } from '@apollo/react-hooks' ;
66
77import { AppContext } from 'utils/context/AppContext' ;
8- import LoadingSpinner from '.. /LoadingSpinner/LoadingSpinner.component' ;
8+ import LoadingSpinner from 'components /LoadingSpinner/LoadingSpinner.component' ;
99
1010import { GET_CART } from 'utils/const/GQL_QUERIES' ;
1111import { ADD_TO_CART } from 'utils/const/GQL_MUTATIONS' ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
1313import PageTitle from 'components/Header/PageTitle.component' ;
1414import RegularCart from './RegularCart.component' ;
1515import MobileCart from './MobileCart.component' ;
16+ import LoadingSpinner from 'components/LoadingSpinner/LoadingSpinner.component' ;
1617
1718import { GET_CART } from 'utils/const/GQL_QUERIES' ;
1819import { UPDATE_CART } from 'utils/const/GQL_MUTATIONS' ;
@@ -103,6 +104,17 @@ const CartItemsContainer = () => {
103104 </ button >
104105 </ Link >
105106 </ div >
107+ { updateCartProcessing && (
108+ < >
109+ < div className = "mt-4 text-xl text-left" >
110+ Oppdaterer antall, vennligst vent ...
111+ < br />
112+ </ div >
113+ < div >
114+ < LoadingSpinner />
115+ </ div >
116+ </ >
117+ ) }
106118 </ div >
107119 ) : (
108120 < div className = "p-6 mx-auto mt-5" >
You can’t perform that action at this time.
0 commit comments