Bladeren bron

fix null url and logo palcement on navbar

master
azri 1 week geleden
bovenliggende
commit
d7b679767f

+ 1
- 0
src/components/Navbar/Navbar.jsx Bestand weergeven

@@ -336,6 +336,7 @@ const Navbar = () => {
336 336
                     height: 25,
337 337
                   }} />
338 338
               </a>
339
+              
339 340
             </Box>
340 341
 
341 342
             {/* Center Section: Nav Items */}

+ 1
- 1
src/components/ProductHistoryList/ProductHistoryList.jsx Bestand weergeven

@@ -72,7 +72,7 @@ const ProductHistoryList = () => {
72 72
             let {id, title, compareAtPriceRange, images, collections} = product
73 73
             let price = compareAtPriceRange.maxVariantPrice.amount
74 74
             let currency = compareAtPriceRange.maxVariantPrice.currencyCode
75
-            let img_url = images.nodes[0].url
75
+            let img_url = images.nodes[0]?.url
76 76
 
77 77
             // ID
78 78
             const parts = id.split('/');

+ 1
- 1
src/components/ProductList/ProductList.jsx Bestand weergeven

@@ -319,7 +319,7 @@ const ProductList = ({ size = 99999 }) => {
319 319
             let maxPrice = maxVariantPrice.amount
320 320
             let maxPriceCurrency = maxVariantPrice.currencyCode
321 321
 
322
-            let img_url = images[0].url
322
+            let img_url = images[0]?.url
323 323
             let collection_name = collections[0]?.title
324 324
 
325 325
             if (index < size) {

+ 1
- 1
src/components/ProductSelected/ProductSelected.jsx Bestand weergeven

@@ -136,7 +136,7 @@ const ProductSelected = () => {
136 136
           let maxPrice = maxVariantPrice.amount
137 137
           let maxPriceCurrency = maxVariantPrice.currencyCode
138 138
 
139
-          let img_url = images[0].url
139
+          let img_url = images[0]?.url
140 140
           let collection_name = collections[0]?.title
141 141
 
142 142
           // ID

+ 1
- 1
src/components/ProductSuggestion/ProductSuggestion.jsx Bestand weergeven

@@ -65,7 +65,7 @@ const ProductSuggestion = () => {
65 65
           let {id, title, compareAtPriceRange, images, collections} = product
66 66
           let price = compareAtPriceRange.maxVariantPrice.amount
67 67
           let currency = compareAtPriceRange.maxVariantPrice.currencyCode
68
-          let img_url = images.nodes[0].url
68
+          let img_url = images.nodes[0]?.url
69 69
 
70 70
           // ID
71 71
           const parts = id.split('/');

+ 12
- 0
src/index.css Bestand weergeven

@@ -384,3 +384,15 @@
384 384
   scrollbar-width: thin; /* Thin scrollbar */
385 385
   scrollbar-color: #95AAC5 #FFF; /* Thumb color and track color */
386 386
 }
387
+
388
+/*LOADER*/
389
+/* HTML: <div class="loader"></div> */
390
+.loader {
391
+  width: 50px;
392
+  aspect-ratio: 1;
393
+  border-radius: 50%;
394
+  border: 8px solid;
395
+  border-color: #000 #0000;
396
+  animation: l1 1s infinite;
397
+}
398
+@keyframes l1 {to{transform: rotate(.5turn)}}

Laden…
Annuleren
Opslaan