Просмотр исходного кода

feat module 1,2,4 : remove unused code

master
nadia 4 дней назад
Родитель
Сommit
478fa86d13
2 измененных файлов: 0 добавлений и 60 удалений
  1. 0
    36
      src/components/Navbar/Navbar.jsx
  2. 0
    24
      src/components/SearchProduct/SearchProduct.jsx

+ 0
- 36
src/components/Navbar/Navbar.jsx Просмотреть файл

@@ -92,42 +92,6 @@ const getProductTypeMenuLabel = (productType = "") => {
92 92
 
93 93
 const NAV_MENU_STRUCTURE = SHARED_NAV_MENU_STRUCTURE;
94 94
 
95
-/*
96
-const NAV_MENU_STRUCTURE = [
97
-  {
98
-    productType: "Apparel",
99
-    label: "APPAREL",
100
-    groups: [
101
-      {
102
-        label: "Casual",
103
-        children: [
104
-          { label: "ND X Marii for Amber", titles: ["DENIM ND X MARII FOR AMBER", "ND X MARII FOR AMBER"] },
105
-          { label: "Somewhere Somehow Someone", titles: ["SOMEWHERE SOMEHOW SOMEONE"] },
106
-          { label: "Flower Power", titles: ["FLOWER POWER"] },
107
-        ],
108
-      },
109
-      {
110
-        label: "Traditional",
111
-        children: [
112
-          { label: "Eid's Time For Love", titles: ["EID'S TIME FOR LOVE"] },
113
-          { label: "Raya Romantics", titles: ["RAYA ROMANTICS", "RAYA ROMANTICS COLLECTION 2025"] },
114
-          { label: "Atma Sari", titles: ["ATMA SARI"] },
115
-          { label: "Oasis abaya", titles: ["OASIS ABAYA COLLECTION", "MIRAGE COLLECTION"] },
116
-        ],
117
-      },
118
-    ],
119
-  },
120
-  {
121
-    productType: "BEAUTY",
122
-    label: "Essentials",
123
-    children: [
124
-      { label: "Cosmetics", titles: ["COSMETICS"] },
125
-      { label: "Hand & Body Lotion", titles: ["HAND & BODY LOTION"] },
126
-    ],
127
-  },
128
-];
129
-*/
130
-
131 95
 const sortCollectionsByPriority = (collection = [], productType = "") => {
132 96
   const typeKey = (productType || "").trim().toLowerCase();
133 97
   const priorityList = COLLECTION_PRIORITY_BY_TYPE[typeKey] || [];

+ 0
- 24
src/components/SearchProduct/SearchProduct.jsx Просмотреть файл

@@ -26,30 +26,6 @@ function doesSubstringExistInArray(array, substring) {
26 26
 // Define allowed search collections for each product type
27 27
 const allowedSearchCollectionsByProductType = getMenuCollectionTitlesByProductType();
28 28
 
29
-/*
30
-Old standalone search allow-list. Current code uses src/config/menuCollections.js
31
-so search results automatically follow the navbar menu.
32
-
33
-const allowedSearchCollectionsByProductType = {
34
-  Apparel: [
35
-    "DENIM ND X MARII FOR AMBER",
36
-    "ND X MARII FOR AMBER",
37
-    "SOMEWHERE SOMEHOW SOMEONE",
38
-    "FLOWER POWER",
39
-    "EID'S TIME FOR LOVE",
40
-    "RAYA ROMANTICS",
41
-    "RAYA ROMANTICS COLLECTION 2025",
42
-    "ATMA SARI",
43
-    "OASIS ABAYA COLLECTION",
44
-    "MIRAGE COLLECTION",
45
-  ],
46
-  BEAUTY: [
47
-    "COSMETICS",
48
-    "HAND & BODY LOTION",
49
-  ],
50
-};
51
-*/
52
-
53 29
 const normalizeTitle = (value = "") => value.trim().toUpperCase();
54 30
 
55 31
 const isProductAllowedInSearch = (product) => {

Загрузка…
Отмена
Сохранить