Sfoglia il codice sorgente

remove unused code

master
nadia 5 giorni fa
parent
commit
d633c82365
1 ha cambiato i file con 0 aggiunte e 29 eliminazioni
  1. 0
    29
      src/components/CarouselContainer/CarouselContainer.jsx

+ 0
- 29
src/components/CarouselContainer/CarouselContainer.jsx Vedi File

2
 import { Box, IconButton } from "@mui/material";
2
 import { Box, IconButton } from "@mui/material";
3
 import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
3
 import ArrowBackIosIcon from "@mui/icons-material/ArrowBackIos";
4
 import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
4
 import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos";
5
-// import mainImage1 from "../../assets/images/MAINHEADER-01.webp";
6
 import mainImage2 from "../../assets/images/MAINHEADER-02.webp";
5
 import mainImage2 from "../../assets/images/MAINHEADER-02.webp";
7
-// import mainImage3 from "../../assets/images/MAINHEADER-03.webp";
8
-// import mainImage4 from "../../assets/images/MAINHEADER-04.webp";
9
 import mainImage5 from "../../assets/images/MAINHEADER-05.webp";
6
 import mainImage5 from "../../assets/images/MAINHEADER-05.webp";
10
 import mainImage6 from "../../assets/images/MAINHEADER-06.webp";
7
 import mainImage6 from "../../assets/images/MAINHEADER-06.webp";
11
 import mainImage8 from "../../assets/images/MAINHEADER-08.webp";
8
 import mainImage8 from "../../assets/images/MAINHEADER-08.webp";
12
-// import mainImage10 from "../../assets/images/MAINHEADER-10.png";
13
 import mainImage11 from "../../assets/images/MAINHEADER-11.webp";
9
 import mainImage11 from "../../assets/images/MAINHEADER-11.webp";
14
 import mainImage13 from "../../assets/images/MAINHEADER-13.webp";
10
 import mainImage13 from "../../assets/images/MAINHEADER-13.webp";
15
 import mainImage14 from "../../assets/images/MAINHEADER-14.jpeg";
11
 import mainImage14 from "../../assets/images/MAINHEADER-14.jpeg";
20
 const CarouselContainer = () => {
16
 const CarouselContainer = () => {
21
 
17
 
22
   const baseItems = [
18
   const baseItems = [
23
-    // Banner click targets. Update productType/title/titles here when changing banner destinations.
24
     { img_src: mainImage14, alt_name: "Essentials", productType: "BEAUTY" },
19
     { img_src: mainImage14, alt_name: "Essentials", productType: "BEAUTY" },
25
     { img_src: mainImage13, alt_name: "Eid's Time For Love", productType: "Apparel", title: "Eid's Time For Love", titles: ["EID'S TIME FOR LOVE"] },
20
     { img_src: mainImage13, alt_name: "Eid's Time For Love", productType: "Apparel", title: "Eid's Time For Love", titles: ["EID'S TIME FOR LOVE"] },
26
-    // Local Shopify collection title is "DENIM ND X MARII FOR AMBER"; old/reference title: "ND X MARII FOR AMBER".
27
     { img_src: mainImage11, alt_name: "ND X Marii for Amber", productType: "Apparel", title: "ND X Marii for Amber", titles: ["DENIM ND X MARII FOR AMBER", "ND X MARII FOR AMBER"] },
21
     { img_src: mainImage11, alt_name: "ND X Marii for Amber", productType: "Apparel", title: "ND X Marii for Amber", titles: ["DENIM ND X MARII FOR AMBER", "ND X MARII FOR AMBER"] },
28
-    // { img_src: mainImage10, alt_name: "Oasis Abaya", productType: "Apparel", title: "Oasis abaya", titles: ["OASIS ABAYA COLLECTION", "MIRAGE COLLECTION"] },
29
     { img_src: mainImage8, alt_name: "Somewhere Somehow Someone", productType: "Apparel", title: "Somewhere Somehow Someone", titles: ["SOMEWHERE SOMEHOW SOMEONE"] },
22
     { img_src: mainImage8, alt_name: "Somewhere Somehow Someone", productType: "Apparel", title: "Somewhere Somehow Someone", titles: ["SOMEWHERE SOMEHOW SOMEONE"] },
30
     { img_src: mainImage6, alt_name: "Oasis Abaya Collection", productType: "Apparel", title: "Oasis abaya", titles: ["OASIS ABAYA COLLECTION", "OASIS ABAYA"] },
23
     { img_src: mainImage6, alt_name: "Oasis Abaya Collection", productType: "Apparel", title: "Oasis abaya", titles: ["OASIS ABAYA COLLECTION", "OASIS ABAYA"] },
31
-    // Local Shopify collection title is "RAYA ROMANTICS"; old/reference title: "RAYA ROMANTICS COLLECTION 2025".
32
     { img_src: mainImage5, alt_name: "Raya Romantics", productType: "Apparel", title: "Raya Romantics", titles: ["RAYA ROMANTICS", "RAYA ROMANTICS COLLECTION 2025"] },
24
     { img_src: mainImage5, alt_name: "Raya Romantics", productType: "Apparel", title: "Raya Romantics", titles: ["RAYA ROMANTICS", "RAYA ROMANTICS COLLECTION 2025"] },
33
-    // { img_src: mainImage3, alt_name: "Amber Home", productType: "HOME" },
34
-    // { img_src: mainImage3, alt_name: "Amber Home", clickable: false },
35
-    // { img_src: mainImage4, alt_name: "Amber Beauty Fragrance", productType: "BEAUTY", title: "Fragrances", titles: ["FRAGRANCES"] },
36
-    // { img_src: mainImage4, alt_name: "Amber Beauty Fragrance", clickable: false },
37
     { img_src: mainImage2, alt_name: "Amber Beauty Cosmetics", productType: "BEAUTY", title: "Cosmetics", titles: ["COSMETICS"] },
25
     { img_src: mainImage2, alt_name: "Amber Beauty Cosmetics", productType: "BEAUTY", title: "Cosmetics", titles: ["COSMETICS"] },
38
-    // { img_src: mainImage1, alt_name: "Amber Apparel", clickable: false },
39
   ];
26
   ];
40
 
27
 
41
   const items = [...baseItems, ...baseItems];
28
   const items = [...baseItems, ...baseItems];
81
             outline: "none"
68
             outline: "none"
82
           }}
69
           }}
83
         >
70
         >
84
-          {/*
85
-          Old image-click code:
86
-          <Box
87
-            component="img"
88
-            src={item.img_src}
89
-            alt={item.alt_name}
90
-            onClick={() => navigateToBanner(item)}
91
-            sx={{
92
-              width: "100%",
93
-              height: "100%",
94
-              zIndex: 0,
95
-              filter: "brightness(0.9)",
96
-              cursor: item.clickable === false ? "default" : "pointer"
97
-            }}
98
-          />
99
-          */}
100
           <Box
71
           <Box
101
             component="img"
72
             component="img"
102
             src={item.img_src}
73
             src={item.img_src}

Loading…
Annulla
Salva