Sfoglia il codice sorgente

remove unused code

master
nadia 5 giorni fa
parent
commit
f1e162e6d8
2 ha cambiato i file con 0 aggiunte e 24 eliminazioni
  1. 0
    18
      src/components/ProductType/ProductType.jsx
  2. 0
    6
      src/pages/Home.jsx

+ 0
- 18
src/components/ProductType/ProductType.jsx Vedi File

@@ -40,11 +40,6 @@ const productTypeValue = productType || getProductTypeValue(title);
40 40
             backgroundColor: 'rgba(0, 0, 0, 0.5)'
41 41
           }
42 42
         }}
43
-        // onClick={() => {
44
-        //   sessionStorage.setItem('amber-select-product-type', title)
45
-        //   sessionStorage.removeItem('amber-select-collection')
46
-        //   window.location.href = '/products'
47
-        // }}
48 43
         onClick={clickable ? () => {
49 44
           sessionStorage.setItem('amber-select-product-type', productTypeValue)
50 45
           sessionStorage.removeItem('amber-select-collection')
@@ -63,19 +58,6 @@ const productTypeValue = productType || getProductTypeValue(title);
63 58
           window.location.href = '/products'
64 59
         } : undefined}
65 60
       >
66
-        {/* <Typography variant="h5" gutterBottom sx={{ fontWeight: "600", letterSpacing: 7, marginRight:"-0.4em" }}>
67
-          {title?.toUpperCase()}
68
-        </Typography>
69
-        <Button
70
-          variant="contained"
71
-          color="primary"
72
-          onClick={() => {
73
-            sessionStorage.setItem('amber-select-product-type', title)
74
-            sessionStorage.removeItem('amber-select-collection')
75
-            window.location.href = '/products'
76
-          }}>
77
-          SHOP NOW
78
-        </Button> */}
79 61
       </Box>
80 62
     </Box>
81 63
   );

+ 0
- 6
src/pages/Home.jsx Vedi File

@@ -4,16 +4,10 @@ import Grid from '@mui/material/Grid2';
4 4
 import LocationOnIcon from '@mui/icons-material/LocationOn';
5 5
 import CarouselContainer from '../components/CarouselContainer'
6 6
 import ProductSelected from '../components/ProductSelected'
7
-// import SocialMedia from '../components/SocialMedia'
8
-// import Feature from '../components/Feature'
9
-// import { Link } from '@mui/material'
10 7
 import VideoAds from '../components/VideoAds'
11 8
 import ProductType from '../components/ProductType';
12
-// import NewsLetter from '../components/NewsLetter';
13 9
 import ProductService from "../services/ProductService"
14
-// import AmberHomeWallpaper from "../assets/images/amberHomeWallpaper.webp";
15 10
 import AmberHomeWallpaper from "../assets/images/squarebanneramberessentials.jpeg";
16
-// import AmberBeautyWallpaper from "../assets/images/amberBeautyWallpaper.webp";
17 11
 import AmberBeautyWallpaper from "../assets/images/squarebanneramberbeauty.jpeg";
18 12
 import AmberClothing from "../assets/images/MAINHEADER-13.webp"
19 13
 const AmberCosmeticsHeader = "https://cdn.shopify.com/s/files/1/0919/4592/6946/collections/Mask_Group_-4.webp?v=1737761743"

Loading…
Annulla
Salva