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';
5
5
import { useQuery , useMutation } from '@apollo/react-hooks' ;
6
6
7
7
import { AppContext } from 'utils/context/AppContext' ;
8
- import LoadingSpinner from '.. /LoadingSpinner/LoadingSpinner.component' ;
8
+ import LoadingSpinner from 'components /LoadingSpinner/LoadingSpinner.component' ;
9
9
10
10
import { GET_CART } from 'utils/const/GQL_QUERIES' ;
11
11
import { ADD_TO_CART } from 'utils/const/GQL_MUTATIONS' ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
import PageTitle from 'components/Header/PageTitle.component' ;
14
14
import RegularCart from './RegularCart.component' ;
15
15
import MobileCart from './MobileCart.component' ;
16
+ import LoadingSpinner from 'components/LoadingSpinner/LoadingSpinner.component' ;
16
17
17
18
import { GET_CART } from 'utils/const/GQL_QUERIES' ;
18
19
import { UPDATE_CART } from 'utils/const/GQL_MUTATIONS' ;
@@ -103,6 +104,17 @@ const CartItemsContainer = () => {
103
104
</ button >
104
105
</ Link >
105
106
</ 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
+ ) }
106
118
</ div >
107
119
) : (
108
120
< div className = "p-6 mx-auto mt-5" >
You can’t perform that action at this time.
0 commit comments