File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed
Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -87,18 +87,24 @@ const AddToCartButton = (props) => {
8787
8888 return (
8989 < >
90- < button
91- onClick = { handleAddToCartClick }
92- className = "px-4 py-2 font-bold bg-white border border-gray-400 border-solid rounded hover:bg-gray-400"
93- >
94- KJØP
95- </ button >
90+ { ! addToCartLoading && (
91+ < button
92+ onClick = { handleAddToCartClick }
93+ className = "px-4 py-2 font-bold bg-white border border-gray-400 border-solid rounded hover:bg-gray-400"
94+ >
95+ KJØP
96+ </ button >
97+ ) }
9698 { addToCartLoading && (
97- < div className = "text-xl text-center" >
98- Legger i handlekurv, vennligst vent ...
99- < br />
100- < LoadingSpinner />
101- </ div >
99+ < >
100+ < div className = "mt-4 text-xl text-left" >
101+ Legger i handlekurv, vennligst vent ...
102+ < br />
103+ </ div >
104+ < div className = "absolute ml-32" >
105+ < LoadingSpinner />
106+ </ div >
107+ </ >
102108 ) }
103109 </ >
104110 ) ;
You can’t perform that action at this time.
0 commit comments