contentoh-components-library 21.1.79 → 21.1.80
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/molecules/StatusAsignationInfo/index.js +1 -3
- package/dist/components/pages/RetailerProductEdition/index.js +5 -3
- package/package.json +1 -1
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -3
- package/src/components/pages/RetailerProductEdition/index.js +1 -1
|
@@ -108,9 +108,7 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
108
108
|
slidePosition: "bottom-slide"
|
|
109
109
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
|
|
110
110
|
buttonType: "general circular-button version-button",
|
|
111
|
-
onClick:
|
|
112
|
-
setShowVersionSelector(true);
|
|
113
|
-
},
|
|
111
|
+
onClick: setShowVersionSelector,
|
|
114
112
|
label: "V".concat(version)
|
|
115
113
|
}), status !== "-" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
|
|
116
114
|
statusType: status,
|
|
@@ -397,7 +397,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
397
397
|
var _useCloseModal = (0, _customHooks.useCloseModal)("version-selector"),
|
|
398
398
|
_useCloseModal2 = (0, _slicedToArray2.default)(_useCloseModal, 2),
|
|
399
399
|
showVersionSelector = _useCloseModal2[0],
|
|
400
|
-
|
|
400
|
+
_setShowVersionSelector = _useCloseModal2[1];
|
|
401
401
|
|
|
402
402
|
(0, _react.useEffect)(function () {
|
|
403
403
|
checkAll && setSelectedImages(images.values);
|
|
@@ -1756,7 +1756,9 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1756
1756
|
isRetailer: isRetailer,
|
|
1757
1757
|
showSaveButton: auditorAssigned() || userAssigned(),
|
|
1758
1758
|
version: version,
|
|
1759
|
-
setShowVersionSelector: setShowVersionSelector
|
|
1759
|
+
setShowVersionSelector: function setShowVersionSelector() {
|
|
1760
|
+
return _setShowVersionSelector(true);
|
|
1761
|
+
},
|
|
1760
1762
|
onClickSave: function onClickSave() {
|
|
1761
1763
|
switch (activeTab) {
|
|
1762
1764
|
case "Descripción":
|
|
@@ -1898,7 +1900,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
1898
1900
|
companyName: product.article.company_name,
|
|
1899
1901
|
currentVersion: version,
|
|
1900
1902
|
setShowCreateVersion: setShowCreateVersion,
|
|
1901
|
-
setShowVersionSelector:
|
|
1903
|
+
setShowVersionSelector: _setShowVersionSelector
|
|
1902
1904
|
}), showCreateVersion && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CreateVersion.CreateVersion, {
|
|
1903
1905
|
idArticle: product.article.id_article,
|
|
1904
1906
|
version: version,
|
package/package.json
CHANGED
|
@@ -76,9 +76,7 @@ export const StatusAsignationInfo = ({
|
|
|
76
76
|
/>
|
|
77
77
|
<Button
|
|
78
78
|
buttonType={"general circular-button version-button"}
|
|
79
|
-
onClick={
|
|
80
|
-
setShowVersionSelector(true);
|
|
81
|
-
}}
|
|
79
|
+
onClick={setShowVersionSelector}
|
|
82
80
|
label={`V${version}`}
|
|
83
81
|
/>
|
|
84
82
|
{status !== "-" && <StatusTag statusType={status} ovalForm={true} />}
|
|
@@ -1275,7 +1275,7 @@ export const RetailerProductEdition = ({
|
|
|
1275
1275
|
isRetailer={isRetailer}
|
|
1276
1276
|
showSaveButton={auditorAssigned() || userAssigned()}
|
|
1277
1277
|
version={version}
|
|
1278
|
-
setShowVersionSelector={setShowVersionSelector}
|
|
1278
|
+
setShowVersionSelector={() => setShowVersionSelector(true)}
|
|
1279
1279
|
onClickSave={() => {
|
|
1280
1280
|
switch (activeTab) {
|
|
1281
1281
|
case "Descripción":
|