contentoh-components-library 21.1.29 → 21.1.30
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/ValidationPanel/index.js +4 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +4 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +5 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +99 -109
- package/dist/components/pages/ProviderProductEdition/index.js +143 -59
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +56 -65
- package/dist/components/pages/RetailerProductEdition/index.js +127 -18
- package/package.json +1 -1
- package/src/components/atoms/ValidationPanel/index.js +5 -4
- package/src/components/molecules/AvatarAndValidation/index.js +5 -1
- package/src/components/organisms/FullProductNameHeader/index.js +5 -1
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +106 -108
- package/src/components/pages/ProviderProductEdition/index.js +108 -34
- package/src/components/pages/ProviderProductEdition/styles.js +1 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +57 -68
- package/src/components/pages/RetailerProductEdition/index.js +103 -3
|
@@ -31,70 +31,61 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "
|
|
35
|
-
articleId: 238,
|
|
36
|
-
category: 846,
|
|
37
|
-
version: 2,
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJjOTRhNzMwNS05MzY1LTQ2ZmYtYTQyMy00YjRiYzNiOGIxODAiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjp0cnVlLCJjb2duaXRvOnVzZXJuYW1lIjoiYzk0YTczMDUtOTM2NS00NmZmLWE0MjMtNGI0YmMzYjhiMTgwIiwiY29nbml0bzpyb2xlcyI6WyJhcm46YXdzOmlhbTo6ODk4NjcwMjMyODA3OnJvbGVcL2NvbnRlbnRvaC1kZXYtdXMtZWFzdC0xLWxhbWJkYVJvbGUiXSwiYXVkIjoiNWFjOHRwZ3M2Z2JzcTEzZnJ2cnBpZWVwNDAiLCJldmVudF9pZCI6ImExY2QwOGQ3LTM0MTgtNGI0ZC1hODNmLTJlOWE0N2E2ZTQzYSIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNjU2Mzc1MzQ5LCJuYW1lIjoiQ29sYWJvcmFkb3IiLCJwaG9uZV9udW1iZXIiOiIrNTIxMTExIiwiZXhwIjoxNjU2Mzc4OTQ5LCJpYXQiOjE2NTYzNzUzNDksImVtYWlsIjoic2FsbWVyb24uNUBob3RtYWlsLmNvbSJ9.AXD7CR-3bJz6vIdBBNB_3xLfaTvlFjHi-cwKdN5qCUSY4msnf1a1RhMEThL3wt7fXi15dy5Fy5b_7zgkWc_NY35Otu1ifQNmSxemncx5qFsNsBH6OvIaZrhiw7XXkfQF20w22f4o8VFW1u0cWudFBYYm6tXlKVEetw-NEu94Mnip0BtQQUU6rFjz5hQM0gWYsvOMmSX3JKQWl4thirzTOqJxrKebFeWnUMs5D3hlFpKeBSKodgB6lLw2522SJmxWXmGCaDOVSMUP9LqB9PsboSOBfSeQpkbIZqd9iNWbrFCusGhnoRrQABucqFwlQ6KPHYTPaOOux-X3pf6i5woX4g",
|
|
38
35
|
productSelected: {
|
|
39
36
|
services: {
|
|
40
37
|
datasheets: 1,
|
|
41
38
|
descriptions: 1,
|
|
42
39
|
images: 1
|
|
43
40
|
},
|
|
44
|
-
orderId:
|
|
45
|
-
status: "
|
|
46
|
-
datasheet_status: "
|
|
47
|
-
prio: "
|
|
48
|
-
version:
|
|
49
|
-
description_status: "
|
|
50
|
-
images_status: "
|
|
41
|
+
orderId: 64,
|
|
42
|
+
status: "AF",
|
|
43
|
+
datasheet_status: "AF",
|
|
44
|
+
prio: "none",
|
|
45
|
+
version: 7,
|
|
46
|
+
description_status: "AF",
|
|
47
|
+
images_status: "AF",
|
|
51
48
|
article: {
|
|
52
|
-
id_article:
|
|
53
|
-
id_category: "
|
|
54
|
-
name: "
|
|
55
|
-
upc: "
|
|
56
|
-
timestamp: "
|
|
57
|
-
id_user:
|
|
58
|
-
status: "
|
|
49
|
+
id_article: 35707,
|
|
50
|
+
id_category: "41",
|
|
51
|
+
name: "chetos",
|
|
52
|
+
upc: "1010101010",
|
|
53
|
+
timestamp: "2022-06-16T18:12:42.000Z",
|
|
54
|
+
id_user: 28,
|
|
55
|
+
status: "NULL",
|
|
59
56
|
active: 1,
|
|
60
|
-
company_id:
|
|
61
|
-
company_name: "
|
|
62
|
-
country: "
|
|
63
|
-
id_order:
|
|
64
|
-
id_datasheet_especialist:
|
|
65
|
-
id_datasheet_facilitator:
|
|
66
|
-
id_description_especialist:
|
|
67
|
-
id_description_facilitator:
|
|
68
|
-
id_images_especialist:
|
|
69
|
-
id_images_facilitator:
|
|
70
|
-
id_auditor:
|
|
57
|
+
company_id: 1,
|
|
58
|
+
company_name: "COMPANY DEV",
|
|
59
|
+
country: "México",
|
|
60
|
+
id_order: 64,
|
|
61
|
+
id_datasheet_especialist: 54,
|
|
62
|
+
id_datasheet_facilitator: 52,
|
|
63
|
+
id_description_especialist: 54,
|
|
64
|
+
id_description_facilitator: 52,
|
|
65
|
+
id_images_especialist: 55,
|
|
66
|
+
id_images_facilitator: 53,
|
|
67
|
+
id_auditor: 30,
|
|
71
68
|
id_recepcionist: null,
|
|
72
|
-
category: "
|
|
73
|
-
missingAttributes:
|
|
74
|
-
missingDescriptions:
|
|
75
|
-
missingImages:
|
|
69
|
+
category: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
|
|
70
|
+
missingAttributes: null,
|
|
71
|
+
missingDescriptions: null,
|
|
72
|
+
missingImages: null
|
|
76
73
|
},
|
|
77
74
|
retailers: [{
|
|
78
|
-
id:
|
|
79
|
-
name: "
|
|
80
|
-
country: "México",
|
|
81
|
-
id_region: 1,
|
|
82
|
-
active: 1
|
|
83
|
-
}, {
|
|
84
|
-
id: 6,
|
|
85
|
-
name: "HEB",
|
|
75
|
+
id: 3,
|
|
76
|
+
name: "Sam´s Club",
|
|
86
77
|
country: "México",
|
|
87
78
|
id_region: 1,
|
|
88
79
|
active: 1
|
|
89
80
|
}, {
|
|
90
|
-
id:
|
|
91
|
-
name: "
|
|
81
|
+
id: 8,
|
|
82
|
+
name: "Fragua",
|
|
92
83
|
country: "México",
|
|
93
84
|
id_region: 1,
|
|
94
85
|
active: 1
|
|
95
86
|
}],
|
|
96
|
-
country: "
|
|
97
|
-
upc: "
|
|
87
|
+
country: "México",
|
|
88
|
+
upc: "1010101010"
|
|
98
89
|
},
|
|
99
90
|
location: {
|
|
100
91
|
product: {
|
|
@@ -103,36 +94,36 @@ RetailerProductEditionDefault.args = {
|
|
|
103
94
|
}
|
|
104
95
|
},
|
|
105
96
|
user: {
|
|
106
|
-
id_user:
|
|
107
|
-
name: "
|
|
108
|
-
last_name: "
|
|
109
|
-
email: "
|
|
110
|
-
position: "
|
|
97
|
+
id_user: 30,
|
|
98
|
+
name: "Admin",
|
|
99
|
+
last_name: "Ulises",
|
|
100
|
+
email: "salmeron.5@hotmail.com",
|
|
101
|
+
position: "Admin",
|
|
111
102
|
telephone: null,
|
|
112
|
-
country:
|
|
113
|
-
id_company:
|
|
114
|
-
id_cognito: "
|
|
103
|
+
country: "México",
|
|
104
|
+
id_company: 2,
|
|
105
|
+
id_cognito: "c94a7305-9365-46ff-a423-4b4bc3b8b180",
|
|
115
106
|
birth_Date: null,
|
|
116
107
|
about_me: null,
|
|
117
108
|
zip_code: null,
|
|
118
109
|
address: null,
|
|
119
110
|
job: null,
|
|
120
111
|
id_stripe: null,
|
|
121
|
-
id_role:
|
|
112
|
+
id_role: 6,
|
|
122
113
|
active: 1,
|
|
123
114
|
is_retailer: 0,
|
|
124
|
-
email_notify:
|
|
115
|
+
email_notify: 0,
|
|
125
116
|
membership: {
|
|
126
|
-
id:
|
|
127
|
-
start_date: "
|
|
128
|
-
end_date: "
|
|
129
|
-
planID:
|
|
130
|
-
plan: "
|
|
131
|
-
name: "Plan
|
|
132
|
-
user_limit: "
|
|
133
|
-
products_limit: "
|
|
134
|
-
type: "
|
|
117
|
+
id: 2,
|
|
118
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
119
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
120
|
+
planID: 1,
|
|
121
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
122
|
+
name: "Plan Free",
|
|
123
|
+
user_limit: "1",
|
|
124
|
+
products_limit: "3",
|
|
125
|
+
type: "PyMES"
|
|
135
126
|
},
|
|
136
|
-
src: "https://content-management-profile
|
|
127
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?1656375350443"
|
|
137
128
|
}
|
|
138
129
|
};
|
|
@@ -142,8 +142,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
142
142
|
productSelected = _ref$productSelected === void 0 ? {} : _ref$productSelected,
|
|
143
143
|
_ref$user = _ref.user,
|
|
144
144
|
user = _ref$user === void 0 ? {} : _ref$user,
|
|
145
|
-
_ref$location = _ref.location,
|
|
146
|
-
location = _ref$location === void 0 ? {} : _ref$location,
|
|
147
145
|
token = _ref.token;
|
|
148
146
|
|
|
149
147
|
var _useState = (0, _react.useState)("Descripción"),
|
|
@@ -378,6 +376,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
378
376
|
saving = _useState70[0],
|
|
379
377
|
setSaving = _useState70[1];
|
|
380
378
|
|
|
379
|
+
var isAuditor = user.id_role === 6;
|
|
381
380
|
(0, _react.useEffect)(function () {
|
|
382
381
|
checkAll && setSelectedImages(images.values);
|
|
383
382
|
}, [checkAll]);
|
|
@@ -753,17 +752,16 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
753
752
|
articleId: product === null || product === void 0 ? void 0 : (_product$article10 = product.article) === null || _product$article10 === void 0 ? void 0 : _product$article10.id_article,
|
|
754
753
|
articleData: updatedDatasheets
|
|
755
754
|
};
|
|
756
|
-
console.log(updatedDatasheets, "updatedDatasheets");
|
|
757
755
|
if (product !== null && product !== void 0 && product.orderId) dataObject["orderId"] = product === null || product === void 0 ? void 0 : product.orderId;
|
|
758
|
-
_context6.prev =
|
|
759
|
-
_context6.next =
|
|
756
|
+
_context6.prev = 4;
|
|
757
|
+
_context6.next = 7;
|
|
760
758
|
return _axios.default.put("".concat(process.env.REACT_APP_ARTICLE_DATA_ENDPOINT, "?datasheet=true&version=").concat(version), dataObject, {
|
|
761
759
|
headers: {
|
|
762
760
|
Authorization: token
|
|
763
761
|
}
|
|
764
762
|
});
|
|
765
763
|
|
|
766
|
-
case
|
|
764
|
+
case 7:
|
|
767
765
|
setMessage("Fichas técnicas guardadas");
|
|
768
766
|
|
|
769
767
|
if (productTemp.status === "ASSIGNED") {
|
|
@@ -773,20 +771,20 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
773
771
|
}
|
|
774
772
|
|
|
775
773
|
loadData();
|
|
776
|
-
_context6.next =
|
|
774
|
+
_context6.next = 15;
|
|
777
775
|
break;
|
|
778
776
|
|
|
779
|
-
case
|
|
780
|
-
_context6.prev =
|
|
781
|
-
_context6.t0 = _context6["catch"](
|
|
777
|
+
case 12:
|
|
778
|
+
_context6.prev = 12;
|
|
779
|
+
_context6.t0 = _context6["catch"](4);
|
|
782
780
|
console.log(_context6.t0);
|
|
783
781
|
|
|
784
|
-
case
|
|
782
|
+
case 15:
|
|
785
783
|
case "end":
|
|
786
784
|
return _context6.stop();
|
|
787
785
|
}
|
|
788
786
|
}
|
|
789
|
-
}, _callee6, null, [[
|
|
787
|
+
}, _callee6, null, [[4, 12]]);
|
|
790
788
|
}));
|
|
791
789
|
|
|
792
790
|
return function saveDatasheets() {
|
|
@@ -1546,6 +1544,88 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1546
1544
|
(0, _react.useEffect)(function () {
|
|
1547
1545
|
setSaving(loading);
|
|
1548
1546
|
}, [loading]);
|
|
1547
|
+
|
|
1548
|
+
var validateAll = /*#__PURE__*/function () {
|
|
1549
|
+
var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(result) {
|
|
1550
|
+
var evaluationArray, sendAll, conceptArray, productTemp;
|
|
1551
|
+
return _regenerator.default.wrap(function _callee13$(_context13) {
|
|
1552
|
+
while (1) {
|
|
1553
|
+
switch (_context13.prev = _context13.next) {
|
|
1554
|
+
case 0:
|
|
1555
|
+
_context13.prev = 0;
|
|
1556
|
+
setLoading(true);
|
|
1557
|
+
evaluationArray = [];
|
|
1558
|
+
sendAll = [];
|
|
1559
|
+
conceptArray = ["description", "datasheet", "images"];
|
|
1560
|
+
servicesData === null || servicesData === void 0 ? void 0 : servicesData.forEach(function (ret) {
|
|
1561
|
+
var _product$id_order;
|
|
1562
|
+
|
|
1563
|
+
var data = {
|
|
1564
|
+
articleId: product.article.id_article,
|
|
1565
|
+
orderId: (_product$id_order = product.id_order) !== null && _product$id_order !== void 0 ? _product$id_order : product.orderId,
|
|
1566
|
+
concept: ret.service,
|
|
1567
|
+
result: result,
|
|
1568
|
+
evalStatus: product["".concat(ret.service, "_status")],
|
|
1569
|
+
retailerId: ret.id_retailer
|
|
1570
|
+
};
|
|
1571
|
+
evaluationArray.push(_axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
|
|
1572
|
+
headers: {
|
|
1573
|
+
Authorization: token
|
|
1574
|
+
}
|
|
1575
|
+
}));
|
|
1576
|
+
});
|
|
1577
|
+
_context13.next = 8;
|
|
1578
|
+
return Promise.all(evaluationArray);
|
|
1579
|
+
|
|
1580
|
+
case 8:
|
|
1581
|
+
conceptArray === null || conceptArray === void 0 ? void 0 : conceptArray.forEach(function (concept) {
|
|
1582
|
+
var _product$id_order2;
|
|
1583
|
+
|
|
1584
|
+
var data = {
|
|
1585
|
+
articleId: product.article.id_article,
|
|
1586
|
+
orderId: (_product$id_order2 = product.id_order) !== null && _product$id_order2 !== void 0 ? _product$id_order2 : product.orderId,
|
|
1587
|
+
concept: concept,
|
|
1588
|
+
evalStatus: product["".concat(concept, "_status")]
|
|
1589
|
+
};
|
|
1590
|
+
sendAll.push(_axios.default.put("".concat(process.env.REACT_APP_SEND_EVAL), data, {
|
|
1591
|
+
headers: {
|
|
1592
|
+
Authorization: token
|
|
1593
|
+
}
|
|
1594
|
+
}));
|
|
1595
|
+
});
|
|
1596
|
+
_context13.next = 11;
|
|
1597
|
+
return Promise.all(sendAll);
|
|
1598
|
+
|
|
1599
|
+
case 11:
|
|
1600
|
+
productTemp = product;
|
|
1601
|
+
productTemp.status = "".concat(result, "A");
|
|
1602
|
+
productTemp.datasheet_status = productTemp.datasheet_status === "NA" ? "NA" : "".concat(result, "A");
|
|
1603
|
+
productTemp.description_status = productTemp.description_status === "NA" ? "NA" : "".concat(result, "A");
|
|
1604
|
+
productTemp.images_status = productTemp.images_status === "NA" ? "NA" : "".concat(result, "A");
|
|
1605
|
+
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
1606
|
+
setProduct(productTemp);
|
|
1607
|
+
loadData();
|
|
1608
|
+
_context13.next = 24;
|
|
1609
|
+
break;
|
|
1610
|
+
|
|
1611
|
+
case 21:
|
|
1612
|
+
_context13.prev = 21;
|
|
1613
|
+
_context13.t0 = _context13["catch"](0);
|
|
1614
|
+
console.log(_context13.t0);
|
|
1615
|
+
|
|
1616
|
+
case 24:
|
|
1617
|
+
case "end":
|
|
1618
|
+
return _context13.stop();
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
}, _callee13, null, [[0, 21]]);
|
|
1622
|
+
}));
|
|
1623
|
+
|
|
1624
|
+
return function validateAll(_x7) {
|
|
1625
|
+
return _ref14.apply(this, arguments);
|
|
1626
|
+
};
|
|
1627
|
+
}();
|
|
1628
|
+
|
|
1549
1629
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
1550
1630
|
headerTop: headerTop,
|
|
1551
1631
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_HeaderTop.HeaderTop, {
|
|
@@ -1610,7 +1690,36 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1610
1690
|
}
|
|
1611
1691
|
})]);
|
|
1612
1692
|
},
|
|
1613
|
-
|
|
1693
|
+
showApproveRejectAll: isAuditor && servicesData.every(function (serv) {
|
|
1694
|
+
return ["RA", "AA", "AP", "AC", "AF"].includes(serv.status);
|
|
1695
|
+
}) && approveRejectButtons() && (auditorAssigned() || userAssigned()),
|
|
1696
|
+
showValidationButtons: approveRejectButtons() && (auditorAssigned() || userAssigned()),
|
|
1697
|
+
approveAll: function approveAll() {
|
|
1698
|
+
return validateAll("A");
|
|
1699
|
+
},
|
|
1700
|
+
rejectAll: function rejectAll() {
|
|
1701
|
+
validateAll("R");
|
|
1702
|
+
setMessage("Rechazado");
|
|
1703
|
+
setComponentsArray([/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
1704
|
+
src: _errorModal.default
|
|
1705
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
|
|
1706
|
+
text: "Agrega tu comentarios para enviar el rechazo",
|
|
1707
|
+
headerType: "input-name-header",
|
|
1708
|
+
color: "white"
|
|
1709
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.TagAndInput, {
|
|
1710
|
+
label: "Caja de Comentario",
|
|
1711
|
+
inputType: "textarea",
|
|
1712
|
+
inputId: "modal-commentary-box",
|
|
1713
|
+
index: 0,
|
|
1714
|
+
color: "white"
|
|
1715
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1716
|
+
buttonType: "general-default-button",
|
|
1717
|
+
label: "Enviar comentario",
|
|
1718
|
+
onClick: function onClick(e) {
|
|
1719
|
+
return createComment(e, document.querySelector("#modal-commentary-box .ql-container .ql-editor > p").innerHTML, activeTab);
|
|
1720
|
+
}
|
|
1721
|
+
})]);
|
|
1722
|
+
}
|
|
1614
1723
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
|
|
1615
1724
|
tabsSections: tabsSections,
|
|
1616
1725
|
status: retailerStatus,
|
|
@@ -1714,20 +1823,20 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1714
1823
|
reviewed: crossComment
|
|
1715
1824
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
1716
1825
|
buttonType: "circular-button accept-button",
|
|
1717
|
-
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
1718
|
-
return _regenerator.default.wrap(function
|
|
1826
|
+
onClick: /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {
|
|
1827
|
+
return _regenerator.default.wrap(function _callee14$(_context14) {
|
|
1719
1828
|
while (1) {
|
|
1720
|
-
switch (
|
|
1829
|
+
switch (_context14.prev = _context14.next) {
|
|
1721
1830
|
case 0:
|
|
1722
1831
|
setCrossComment(true);
|
|
1723
1832
|
commentRevised();
|
|
1724
1833
|
|
|
1725
1834
|
case 2:
|
|
1726
1835
|
case "end":
|
|
1727
|
-
return
|
|
1836
|
+
return _context14.stop();
|
|
1728
1837
|
}
|
|
1729
1838
|
}
|
|
1730
|
-
},
|
|
1839
|
+
}, _callee14);
|
|
1731
1840
|
}))
|
|
1732
1841
|
})]
|
|
1733
1842
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
package/package.json
CHANGED
|
@@ -9,9 +9,10 @@ export const ValidationPanel = ({
|
|
|
9
9
|
setShowValidationPanel,
|
|
10
10
|
approve,
|
|
11
11
|
reject,
|
|
12
|
+
approveAll,
|
|
13
|
+
rejectAll,
|
|
12
14
|
showApproveRejectAll,
|
|
13
15
|
}) => {
|
|
14
|
-
console.log(showApproveRejectAll);
|
|
15
16
|
return (
|
|
16
17
|
<Container id={id}>
|
|
17
18
|
<button
|
|
@@ -36,7 +37,7 @@ export const ValidationPanel = ({
|
|
|
36
37
|
<>
|
|
37
38
|
<button
|
|
38
39
|
onClick={() => {
|
|
39
|
-
|
|
40
|
+
approveAll && approveAll();
|
|
40
41
|
}}
|
|
41
42
|
className="validation-option"
|
|
42
43
|
>
|
|
@@ -45,7 +46,7 @@ export const ValidationPanel = ({
|
|
|
45
46
|
</button>
|
|
46
47
|
<button
|
|
47
48
|
onClick={() => {
|
|
48
|
-
|
|
49
|
+
rejectAll && rejectAll();
|
|
49
50
|
}}
|
|
50
51
|
className="validation-option"
|
|
51
52
|
>
|
|
@@ -56,4 +57,4 @@ export const ValidationPanel = ({
|
|
|
56
57
|
)}
|
|
57
58
|
</Container>
|
|
58
59
|
);
|
|
59
|
-
};
|
|
60
|
+
};
|
|
@@ -15,6 +15,8 @@ export const AvatarAndValidation = ({
|
|
|
15
15
|
showValidationButtons,
|
|
16
16
|
approve,
|
|
17
17
|
reject,
|
|
18
|
+
approveAll,
|
|
19
|
+
rejectAll,
|
|
18
20
|
showApproveRejectAll,
|
|
19
21
|
}) => {
|
|
20
22
|
const [showValidationPanel, setShowValidationPanel] = useState(false);
|
|
@@ -63,9 +65,11 @@ export const AvatarAndValidation = ({
|
|
|
63
65
|
setShowValidationPanel={setShowValidationPanel}
|
|
64
66
|
approve={approve}
|
|
65
67
|
reject={reject}
|
|
68
|
+
approveAll={approveAll}
|
|
69
|
+
rejectAll={rejectAll}
|
|
66
70
|
showApproveRejectAll={showApproveRejectAll}
|
|
67
71
|
/>
|
|
68
72
|
)}
|
|
69
73
|
</Container>
|
|
70
74
|
);
|
|
71
|
-
};
|
|
75
|
+
};
|
|
@@ -13,6 +13,8 @@ export const FullProductNameHeader = ({
|
|
|
13
13
|
showValidationButtons,
|
|
14
14
|
approve,
|
|
15
15
|
reject,
|
|
16
|
+
approveAll,
|
|
17
|
+
rejectAll,
|
|
16
18
|
servicesData,
|
|
17
19
|
showApproveRejectAll,
|
|
18
20
|
}) => {
|
|
@@ -73,8 +75,10 @@ export const FullProductNameHeader = ({
|
|
|
73
75
|
showApproveRejectAll={showApproveRejectAll}
|
|
74
76
|
approve={approve}
|
|
75
77
|
reject={reject}
|
|
78
|
+
approveAll={approveAll}
|
|
79
|
+
rejectAll={rejectAll}
|
|
76
80
|
/>
|
|
77
81
|
</div>
|
|
78
82
|
</Container>
|
|
79
83
|
);
|
|
80
|
-
};
|
|
84
|
+
};
|