contentoh-components-library 21.5.21 → 21.5.23
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/organisms/Table/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/MultipleEdition.stories.js +2 -2
- package/dist/components/pages/MultipleEdition/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/utils.js +12 -51
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +152 -61
- package/dist/components/pages/ProviderProductEdition/index.js +89 -31
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +20 -20
- package/dist/components/pages/RetailerProductEdition/index.js +54 -29
- package/package.json +1 -1
- package/src/components/organisms/Table/styles.js +1 -0
- package/src/components/pages/MultipleEdition/MultipleEdition.stories.js +2 -2
- package/src/components/pages/MultipleEdition/styles.js +8 -6
- package/src/components/pages/MultipleEdition/utils.js +16 -7
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +159 -64
- package/src/components/pages/ProviderProductEdition/index.js +100 -39
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +23 -23
- package/src/components/pages/RetailerProductEdition/index.js +36 -20
|
@@ -31,49 +31,49 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.
|
|
34
|
+
token: "eyJraWQiOiJEV3owZnNieXg2MXNFcVduN3RCXC81bVhod3ZNbFZIOTgwUnZcL3RjT0lKdEk9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNGRiODI2My1jYjA1LTQzMTItOWU0NS1lM2RlY2E2NjllNzIiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfbFN6UVo0WjdSIiwiY29nbml0bzp1c2VybmFtZSI6ImY0ZGI4MjYzLWNiMDUtNDMxMi05ZTQ1LWUzZGVjYTY2OWU3MiIsImF1ZCI6IjUyZDlza2tkY2c4cWpwODhvb2sxdXNlNm1rIiwiZXZlbnRfaWQiOiIwZGZkNTRmZC1lMjU1LTRkNmEtYmE1ZS1hYzdjYWM2NjY0NzciLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTcxODgxMjc1MSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTcxODgxNjM1MCwiaWF0IjoxNzE4ODEyNzUxLCJlbWFpbCI6ImVtb250YW5vQGNvbnRlbnRvaC5jb20ifQ.eruTcERQql3d7XO5LWbmTAOgrU7avQQ-GN3iiRGuVYUmI1tqMsHxWVsxC8T3QMBkZFL9djpMaOvw53Fc_Gl84WKPr9pmECDsqUkgXKJZxHE5jsRJjsyAd9pdJ00jYdeWePoitxYazBR9TW0TofiB7L5F9b_gjZrGdoAzz1gQvWABL_eGYxrGfJCoNBzxbU8zAIfPJV6u6PR98rumtMVWHW_FyzpZnNKSiP4rEkG7H9cW-Mdzl39seeHQRo9SNht55tnlPkXi7jN6R-AOGhgK0yBHgAwVBbv3aT_TDArXEiXFUFG9viCIq7H6lRvCaXEmJoKnOZOCbpX1y3QI8ayMVQ",
|
|
35
35
|
productSelected: {
|
|
36
36
|
services: {
|
|
37
37
|
datasheets: 1,
|
|
38
38
|
descriptions: 1,
|
|
39
39
|
images: 1
|
|
40
40
|
},
|
|
41
|
-
orderId:
|
|
41
|
+
orderId: 8086,
|
|
42
42
|
status: "RP",
|
|
43
43
|
datasheet_status: "AA",
|
|
44
44
|
prio: "none",
|
|
45
45
|
version: 3,
|
|
46
|
-
description_status: "
|
|
47
|
-
images_status: "
|
|
46
|
+
description_status: "AA",
|
|
47
|
+
images_status: "RA",
|
|
48
48
|
statusByRetailer: {
|
|
49
49
|
"58": {
|
|
50
50
|
datasheet: "AA",
|
|
51
|
-
description: "
|
|
52
|
-
images: "
|
|
51
|
+
description: "AA",
|
|
52
|
+
images: "RA/CA"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
article: {
|
|
56
|
-
id_article:
|
|
57
|
-
id_category: "
|
|
58
|
-
name: "
|
|
59
|
-
upc: "
|
|
60
|
-
timestamp: "2024-
|
|
61
|
-
id_user:
|
|
56
|
+
id_article: 127595,
|
|
57
|
+
id_category: "2902",
|
|
58
|
+
name: "LISTON DECORATIVO DISNEY 5M 2 ESTILOS",
|
|
59
|
+
upc: "214715",
|
|
60
|
+
timestamp: "2024-06-05T14:29:41.000Z",
|
|
61
|
+
id_user: 673,
|
|
62
62
|
status: null,
|
|
63
63
|
active: 1,
|
|
64
|
-
company_id:
|
|
65
|
-
company_name: "
|
|
66
|
-
country:
|
|
67
|
-
id_order:
|
|
64
|
+
company_id: 535,
|
|
65
|
+
company_name: "THD IMPORTACIONES",
|
|
66
|
+
country: null,
|
|
67
|
+
id_order: 8086,
|
|
68
68
|
id_datasheet_especialist: 2757,
|
|
69
69
|
id_datasheet_facilitator: null,
|
|
70
70
|
id_description_especialist: 2757,
|
|
71
71
|
id_description_facilitator: null,
|
|
72
|
-
id_images_especialist:
|
|
72
|
+
id_images_especialist: 1259,
|
|
73
73
|
id_images_facilitator: null,
|
|
74
74
|
id_auditor: 514,
|
|
75
75
|
id_recepcionist: null,
|
|
76
|
-
category: "
|
|
76
|
+
category: "Navidad|Decoración Interior|Mallas y Listones",
|
|
77
77
|
missingAttributes: 0,
|
|
78
78
|
missingDescriptions: 0,
|
|
79
79
|
missingImages: 0
|
|
@@ -82,8 +82,8 @@ RetailerProductEditionDefault.args = {
|
|
|
82
82
|
id: 58,
|
|
83
83
|
name: "The Home Depot Golden"
|
|
84
84
|
}],
|
|
85
|
-
country: "
|
|
86
|
-
upc: "
|
|
85
|
+
country: "",
|
|
86
|
+
upc: "214715"
|
|
87
87
|
},
|
|
88
88
|
// location: {
|
|
89
89
|
// product: { articleId: 126855, versionId: 3 },
|
|
@@ -295,7 +295,7 @@ var myBucket = new _awsSdk.default.S3({
|
|
|
295
295
|
});
|
|
296
296
|
|
|
297
297
|
var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
298
|
-
var _product$retailers, _location$state, _location$state2, _product$services2, _datasheets$, _datasheets$$data, _product$
|
|
298
|
+
var _product$retailers, _location$state, _location$state2, _product$services2, _datasheets$, _datasheets$$data, _product$article18, _comment$message;
|
|
299
299
|
|
|
300
300
|
var tabsSections = _ref3.tabsSections,
|
|
301
301
|
_ref3$productSelected = _ref3.productSelected,
|
|
@@ -719,6 +719,12 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
719
719
|
setObservationVisible(false);
|
|
720
720
|
};
|
|
721
721
|
|
|
722
|
+
var handleCommentSubmit = function handleCommentSubmit(e) {
|
|
723
|
+
e.preventDefault();
|
|
724
|
+
var commentText = document.querySelector("#commentary-box .ql-container .ql-editor > p").innerHTML;
|
|
725
|
+
createComment(e, commentText, activeTab);
|
|
726
|
+
};
|
|
727
|
+
|
|
722
728
|
(0, _react.useEffect)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
723
729
|
var _ref7, id_article;
|
|
724
730
|
|
|
@@ -1734,33 +1740,55 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
1734
1740
|
};
|
|
1735
1741
|
|
|
1736
1742
|
var createComment = /*#__PURE__*/function () {
|
|
1737
|
-
var _ref20 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
|
|
1738
|
-
var
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
_args16 = arguments;
|
|
1743
|
+
var _ref20 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16(e, body, tab) {
|
|
1744
|
+
var _product$article16;
|
|
1745
|
+
|
|
1746
|
+
var concept, data;
|
|
1742
1747
|
return _regenerator.default.wrap(function _callee16$(_context16) {
|
|
1743
1748
|
while (1) {
|
|
1744
1749
|
switch (_context16.prev = _context16.next) {
|
|
1745
1750
|
case 0:
|
|
1746
|
-
|
|
1747
|
-
|
|
1751
|
+
concept = "";
|
|
1752
|
+
_context16.t0 = activeTab;
|
|
1753
|
+
_context16.next = _context16.t0 === "Ficha técnica" ? 4 : _context16.t0 === "Imágenes" ? 6 : 8;
|
|
1754
|
+
break;
|
|
1755
|
+
|
|
1756
|
+
case 4:
|
|
1757
|
+
concept = "datasheet";
|
|
1758
|
+
return _context16.abrupt("break", 10);
|
|
1759
|
+
|
|
1760
|
+
case 6:
|
|
1761
|
+
concept = "images";
|
|
1762
|
+
return _context16.abrupt("break", 10);
|
|
1763
|
+
|
|
1764
|
+
case 8:
|
|
1765
|
+
concept = "description";
|
|
1766
|
+
return _context16.abrupt("break", 10);
|
|
1767
|
+
|
|
1768
|
+
case 10:
|
|
1748
1769
|
data = {
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1770
|
+
articleId: product === null || product === void 0 ? void 0 : (_product$article16 = product.article) === null || _product$article16 === void 0 ? void 0 : _product$article16.id_article,
|
|
1771
|
+
orderId: product === null || product === void 0 ? void 0 : product.orderId,
|
|
1772
|
+
message: body === null || body === void 0 ? void 0 : body.replace(/<.*?\/?>/gm, ""),
|
|
1773
|
+
concept: concept,
|
|
1774
|
+
version: version
|
|
1775
|
+
};
|
|
1776
|
+
_context16.next = 13;
|
|
1777
|
+
return _axios.default.post("".concat(process.env.REACT_APP_COMMENTS_ENDPOINT), data, {
|
|
1778
|
+
headers: {
|
|
1757
1779
|
Authorization: token
|
|
1758
1780
|
}
|
|
1759
|
-
};
|
|
1781
|
+
});
|
|
1782
|
+
|
|
1783
|
+
case 13:
|
|
1784
|
+
_context16.next = 15;
|
|
1785
|
+
return getComments(tab);
|
|
1786
|
+
|
|
1787
|
+
case 15:
|
|
1760
1788
|
setMessage("");
|
|
1761
|
-
|
|
1789
|
+
setComponentsArray([]);
|
|
1762
1790
|
|
|
1763
|
-
case
|
|
1791
|
+
case 17:
|
|
1764
1792
|
case "end":
|
|
1765
1793
|
return _context16.stop();
|
|
1766
1794
|
}
|
|
@@ -1768,7 +1796,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
1768
1796
|
}, _callee16);
|
|
1769
1797
|
}));
|
|
1770
1798
|
|
|
1771
|
-
return function createComment() {
|
|
1799
|
+
return function createComment(_x6, _x7, _x8) {
|
|
1772
1800
|
return _ref20.apply(this, arguments);
|
|
1773
1801
|
};
|
|
1774
1802
|
}();
|
|
@@ -1883,7 +1911,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
1883
1911
|
|
|
1884
1912
|
var setAssignation = /*#__PURE__*/function () {
|
|
1885
1913
|
var _ref22 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(assignationType, assignationId) {
|
|
1886
|
-
var _product$
|
|
1914
|
+
var _product$article17;
|
|
1887
1915
|
|
|
1888
1916
|
var concept, productTemp, data;
|
|
1889
1917
|
return _regenerator.default.wrap(function _callee18$(_context18) {
|
|
@@ -1913,7 +1941,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
1913
1941
|
data = {
|
|
1914
1942
|
articleList: [{
|
|
1915
1943
|
orderId: product.orderId,
|
|
1916
|
-
articleId: product === null || product === void 0 ? void 0 : (_product$
|
|
1944
|
+
articleId: product === null || product === void 0 ? void 0 : (_product$article17 = product.article) === null || _product$article17 === void 0 ? void 0 : _product$article17.id_article
|
|
1917
1945
|
}],
|
|
1918
1946
|
concept: concept,
|
|
1919
1947
|
userId: assignationId
|
|
@@ -1940,7 +1968,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
1940
1968
|
}, _callee18);
|
|
1941
1969
|
}));
|
|
1942
1970
|
|
|
1943
|
-
return function setAssignation(
|
|
1971
|
+
return function setAssignation(_x9, _x10) {
|
|
1944
1972
|
return _ref22.apply(this, arguments);
|
|
1945
1973
|
};
|
|
1946
1974
|
}();
|
|
@@ -2042,7 +2070,6 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
2042
2070
|
};
|
|
2043
2071
|
|
|
2044
2072
|
(0, _react.useEffect)(function () {
|
|
2045
|
-
console.log(servicesData, "servicesData");
|
|
2046
2073
|
var status = getRetailerStatus(servicesData, activeTab);
|
|
2047
2074
|
setRetailerStatus(status);
|
|
2048
2075
|
}, [activeTab, servicesData, activeRetailer]);
|
|
@@ -2137,7 +2164,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
2137
2164
|
}, _callee19, null, [[0, 31]]);
|
|
2138
2165
|
}));
|
|
2139
2166
|
|
|
2140
|
-
return function validateAll(
|
|
2167
|
+
return function validateAll(_x11) {
|
|
2141
2168
|
return _ref23.apply(this, arguments);
|
|
2142
2169
|
};
|
|
2143
2170
|
}();
|
|
@@ -2322,7 +2349,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
2322
2349
|
auditInputGroup: auditDescriptions[0],
|
|
2323
2350
|
updatedDescriptions: updatedDescriptions,
|
|
2324
2351
|
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
2325
|
-
articleId: product === null || product === void 0 ? void 0 : (_product$
|
|
2352
|
+
articleId: product === null || product === void 0 ? void 0 : (_product$article18 = product.article) === null || _product$article18 === void 0 ? void 0 : _product$article18.id_article,
|
|
2326
2353
|
version: version,
|
|
2327
2354
|
dinamicHeight: true,
|
|
2328
2355
|
compare: compare
|
|
@@ -2359,9 +2386,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref3) {
|
|
|
2359
2386
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
2360
2387
|
buttonType: "general-transparent-button",
|
|
2361
2388
|
label: "Enviar comentario",
|
|
2362
|
-
onClick:
|
|
2363
|
-
return createComment(e, document.querySelector("#commentary-box .ql-container .ql-editor > p").innerHTML, activeTab);
|
|
2364
|
-
}
|
|
2389
|
+
onClick: handleCommentSubmit
|
|
2365
2390
|
})
|
|
2366
2391
|
})]
|
|
2367
2392
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
package/package.json
CHANGED
|
@@ -9,9 +9,9 @@ const Template = (args) => <MultipleEdition {...args} />;
|
|
|
9
9
|
export const MultipleEditionDefault = Template.bind({});
|
|
10
10
|
|
|
11
11
|
MultipleEditionDefault.args = {
|
|
12
|
-
articles: [
|
|
12
|
+
articles: [128067],//[216, 238, 239],
|
|
13
13
|
versions: [1],
|
|
14
14
|
//token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxZmFjNjY2Ny1hMDMzLTQ1NjAtOWU5ZC01MTQwMDc2MmI2MWYiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjFmYWM2NjY3LWEwMzMtNDU2MC05ZTlkLTUxNDAwNzYyYjYxZiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06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vPs_EJRIwfw",
|
|
17
17
|
};
|
|
@@ -34,6 +34,7 @@ export const Container = styled.div`
|
|
|
34
34
|
background: red;
|
|
35
35
|
height: 100%;
|
|
36
36
|
font-family: Raleway;
|
|
37
|
+
min-height:140px;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.buttons-container{
|
|
@@ -88,12 +89,7 @@ export const Container = styled.div`
|
|
|
88
89
|
line-height: 18px;
|
|
89
90
|
background-color: white;
|
|
90
91
|
left: 7px;
|
|
91
|
-
|
|
92
|
-
img {
|
|
93
|
-
& + p {
|
|
94
|
-
margin-left: 7px;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
92
|
+
gap:5px;
|
|
97
93
|
|
|
98
94
|
&:hover {
|
|
99
95
|
border-radius: 10px;
|
|
@@ -106,6 +102,12 @@ export const Container = styled.div`
|
|
|
106
102
|
|
|
107
103
|
td{
|
|
108
104
|
margin:0;
|
|
105
|
+
background: #ffffff !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
th{
|
|
109
|
+
border-radius: 0 0 0 0 !important;
|
|
110
|
+
padding: 15px !important;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
textarea {
|
|
@@ -205,6 +205,15 @@ export function setDataColumns(
|
|
|
205
205
|
borderRight: "1px solid #f0f0f0",
|
|
206
206
|
//borderLeft: "1px solid #f0f0f0",
|
|
207
207
|
};
|
|
208
|
+
|
|
209
|
+
const styleApprovalAttributes = {
|
|
210
|
+
textAlign: "center",
|
|
211
|
+
display: "flex",
|
|
212
|
+
justifyContent: "center",
|
|
213
|
+
border: "1px solid #ECDD1D",
|
|
214
|
+
background: "#ECDD1D"
|
|
215
|
+
};
|
|
216
|
+
|
|
208
217
|
const styleData = {
|
|
209
218
|
textAlign: "center",
|
|
210
219
|
display: "flex",
|
|
@@ -333,7 +342,7 @@ export function setDataColumns(
|
|
|
333
342
|
);
|
|
334
343
|
currentData[`img${imageId}`] =
|
|
335
344
|
<>
|
|
336
|
-
<button
|
|
345
|
+
{/* <button
|
|
337
346
|
onClick={() => {
|
|
338
347
|
setShowValidationPanel(true);
|
|
339
348
|
setAttributeSelected({
|
|
@@ -389,7 +398,7 @@ export function setDataColumns(
|
|
|
389
398
|
alt="reject button"
|
|
390
399
|
/>
|
|
391
400
|
)}
|
|
392
|
-
</button>
|
|
401
|
+
</button> */}
|
|
393
402
|
{showValidationPanel &&
|
|
394
403
|
attributeSelected.articleId === item.id &&
|
|
395
404
|
attributeSelected.attributeId === imageId &&
|
|
@@ -502,7 +511,7 @@ export function setDataColumns(
|
|
|
502
511
|
Header: rules[attributeId].name,
|
|
503
512
|
accessor: `${attributeId + "-" + ret.id}`,
|
|
504
513
|
width: "200px",
|
|
505
|
-
style: styleData,
|
|
514
|
+
style: (attributeId==6700 || attributeId==6701) ? styleApprovalAttributes : styleData,
|
|
506
515
|
description: rules[attributeId].description,
|
|
507
516
|
});
|
|
508
517
|
}
|
|
@@ -829,7 +838,7 @@ export function setDataColumns(
|
|
|
829
838
|
);
|
|
830
839
|
currentData[`${des.attributeId}`] = (
|
|
831
840
|
<>
|
|
832
|
-
<button
|
|
841
|
+
{/* <button
|
|
833
842
|
onClick={() => {
|
|
834
843
|
setShowValidationPanel(true);
|
|
835
844
|
setAttributeSelected({
|
|
@@ -885,7 +894,7 @@ export function setDataColumns(
|
|
|
885
894
|
alt="reject button"
|
|
886
895
|
/>
|
|
887
896
|
)}
|
|
888
|
-
</button>
|
|
897
|
+
</button> */}
|
|
889
898
|
{showValidationPanel &&
|
|
890
899
|
attributeSelected.articleId === item.id &&
|
|
891
900
|
attributeSelected.attributeId === des.attributeId &&
|
|
@@ -900,8 +909,8 @@ export function setDataColumns(
|
|
|
900
909
|
className="validation-option"
|
|
901
910
|
>
|
|
902
911
|
<img src={acceptIcon} alt="accept button" />
|
|
903
|
-
<p> Validar </p>
|
|
904
|
-
</button>
|
|
912
|
+
<p> Validar </p>
|
|
913
|
+
</button>
|
|
905
914
|
<button
|
|
906
915
|
onClick={() => {
|
|
907
916
|
setShowValidationPanel(false);
|