contentoh-components-library 21.1.46 → 21.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/GeneralInput/index.js +0 -1
- package/dist/components/atoms/StatusTag/index.js +2 -17
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +4 -1
- package/dist/components/molecules/RetailerSelector/index.js +34 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +3 -2
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
- package/dist/components/organisms/FullTabsMenu/index.js +4 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +119 -87
- package/dist/components/pages/ProviderProductEdition/index.js +380 -328
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +75 -33
- package/dist/components/pages/RetailerProductEdition/index.js +211 -197
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +10 -9
- package/package.json +2 -2
- package/src/components/atoms/GeneralInput/index.js +0 -1
- package/src/components/atoms/StatusTag/index.js +2 -12
- package/src/components/atoms/StatusTag/styles.js +11 -11
- package/src/components/molecules/HeaderTop/index.js +6 -1
- package/src/components/molecules/RetailerSelector/index.js +16 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +3 -2
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/FullTabsMenu/index.js +2 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +116 -92
- package/src/components/pages/ProviderProductEdition/index.js +218 -208
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +77 -31
- package/src/components/pages/RetailerProductEdition/index.js +141 -165
- package/src/components/pages/RetailerProductEdition/styles.js +1 -1
- package/src/global-files/data.js +10 -9
package/src/global-files/data.js
CHANGED
|
@@ -195,18 +195,19 @@ export const fetchUsers = async (auth) => {
|
|
|
195
195
|
export const getNewStatus = (statusArray) => {
|
|
196
196
|
let lookupString = "";
|
|
197
197
|
statusArray.forEach((element) => (lookupString += element + "/"));
|
|
198
|
-
if (lookupString.includes("
|
|
198
|
+
if (lookupString.includes("RC")) return "RC";
|
|
199
199
|
if (lookupString.includes("RA")) return "RA";
|
|
200
200
|
if (lookupString.includes("RP")) return "RP";
|
|
201
|
-
if (lookupString.includes("
|
|
202
|
-
if (lookupString.includes("UNASSIGNED")) return "
|
|
203
|
-
if (lookupString.includes("
|
|
204
|
-
if (lookupString.includes("
|
|
205
|
-
if (lookupString.includes("
|
|
201
|
+
if (lookupString.includes("RCA")) return "RCA";
|
|
202
|
+
if (lookupString.includes("UNASSIGNED")) return "CA";
|
|
203
|
+
if (lookupString.includes("CA")) return "CA";
|
|
204
|
+
if (lookupString.includes("IE")) return "IE";
|
|
205
|
+
if (lookupString.includes("AC")) return "AC";
|
|
206
206
|
if (lookupString.includes("AA")) return "AA";
|
|
207
207
|
if (lookupString.includes("AP")) return "AP";
|
|
208
|
-
if (lookupString.includes("
|
|
209
|
-
if (lookupString.includes("
|
|
208
|
+
if (lookupString.includes("ACA")) return "ACA";
|
|
209
|
+
if (lookupString.includes("R")) return "R";
|
|
210
210
|
if (lookupString.includes("NA")) return "NA";
|
|
211
|
-
|
|
211
|
+
console.log("Status not found");
|
|
212
|
+
return "NA";
|
|
212
213
|
};
|