Browse Source

atome UI

master
azri 15 hours ago
parent
commit
db3dfff9f1

+ 6
- 4
src/components/ProductList/ProductList.jsx View File

@@ -293,8 +293,8 @@ const ProductList = ({ size = 99999 }) => {
293 293
             >
294 294
               {`${minDiscountPriceCurrency} ${parseFloat(minDiscountPrice).toFixed(2)}`}
295 295
             </Typography>}
296
-
297
-            {/* <Typography
296
+            
297
+            <Typography
298 298
               variant="body2"
299 299
               sx={{
300 300
                 fontWeight: "100",
@@ -305,8 +305,10 @@ const ProductList = ({ size = 99999 }) => {
305 305
                 },
306 306
               }}
307 307
             >
308
-              or 3 payments of <span style={{fontWeight:"900"}}>  {`${parseFloat((minPrice/3)).toFixed(2)} ${minPriceCurrency}`}</span> with <span style={{fontWeight:"900"}}>Atome <img style={{marginLeft:5, verticalAlign:"middle"}} width="15" src={atomeLogo} /> </span>
309
-            </Typography> */}
308
+              or 3 payments of <span style={{fontWeight:"900"}}>  {`${ (minDiscountPrice > 0) ? parseFloat((minDiscountPrice/3)).toFixed(2) : parseFloat((minPrice/3)).toFixed(2) } ${minPriceCurrency}`}</span> with <span style={{fontWeight:"900"}}>Atome <img style={{marginLeft:5, verticalAlign:"middle"}} width="15" src={atomeLogo} /> </span>
309
+            </Typography>
310
+
311
+
310 312
 
311 313
           </Box>
312 314
         </Box>

+ 15
- 0
src/components/ProductSelected/ProductSelected.jsx View File

@@ -10,6 +10,7 @@ import { Scrollbar, A11y } from 'swiper/modules';
10 10
 import ChevronLeftIcon from '@mui/icons-material/ChevronLeft';
11 11
 import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
12 12
 import defaultImage from "../../assets/images/default.png"
13
+import atomeLogo from "../../assets/images/atome.webp"
13 14
 
14 15
 const ProductSelected = () => {
15 16
 
@@ -159,6 +160,20 @@ const ProductSelected = () => {
159 160
               >
160 161
                 {`${minDiscountPriceCurrency} ${parseFloat(minDiscountPrice).toFixed(2)}`}
161 162
               </Typography>}
163
+
164
+              <Typography
165
+                variant="body2"
166
+                sx={{
167
+                  fontWeight: "100",
168
+                  fontSize: {
169
+                    xs: "0.73rem",
170
+                    sm: "0.73rem",
171
+                    md: "0.875rem",
172
+                  },
173
+                }}
174
+              >
175
+                or 3 payments of <span style={{ fontWeight: "900" }}>  {`${(minDiscountPrice > 0) ? parseFloat((minDiscountPrice / 3)).toFixed(2) : parseFloat((minPrice / 3)).toFixed(2)} ${minPriceCurrency}`}</span> with <span style={{ fontWeight: "900" }}>Atome <img style={{ marginLeft: 5, verticalAlign: "middle" }} width="15" src={atomeLogo} /> </span>
176
+              </Typography>
162 177
             </Box>
163 178
           </Box>
164 179
         </a>

Loading…
Cancel
Save