contentoh-components-library 21.2.77 → 21.2.78
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/GalleryElement/index.js +1 -16
- package/dist/components/molecules/GalleryHeader/index.js +0 -3
- package/dist/components/pages/RetailerProductEdition/index.js +1 -2
- package/package.json +1 -1
- package/src/components/molecules/GalleryElement/index.js +0 -18
- package/src/components/molecules/GalleryHeader/index.js +0 -1
- package/src/components/pages/RetailerProductEdition/index.js +0 -1
|
@@ -42,9 +42,7 @@ var GalleryElement = function GalleryElement(_ref) {
|
|
|
42
42
|
changeImage = _ref.changeImage,
|
|
43
43
|
selectedImages = _ref.selectedImages,
|
|
44
44
|
setSelectedImages = _ref.setSelectedImages,
|
|
45
|
-
setCheckAll = _ref.setCheckAll
|
|
46
|
-
setSocketType = _ref.setSocketType,
|
|
47
|
-
shotThd = _ref.shotThd;
|
|
45
|
+
setCheckAll = _ref.setCheckAll;
|
|
48
46
|
|
|
49
47
|
var _useState = (0, _react.useState)(validation),
|
|
50
48
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -151,19 +149,6 @@ var GalleryElement = function GalleryElement(_ref) {
|
|
|
151
149
|
index: number
|
|
152
150
|
});
|
|
153
151
|
}
|
|
154
|
-
}), shotThd && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
|
|
155
|
-
width: "100%",
|
|
156
|
-
placeholder: "Tipo de imagen THD",
|
|
157
|
-
options: imageShotType,
|
|
158
|
-
valueSelected: image.image_shot_type,
|
|
159
|
-
onChange: function onChange(e) {
|
|
160
|
-
changeImage({
|
|
161
|
-
action: "changeShotType",
|
|
162
|
-
attribute: "image_shot_type",
|
|
163
|
-
value: +e.target.value,
|
|
164
|
-
index: number
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
152
|
})]
|
|
168
153
|
})]
|
|
169
154
|
})]
|
|
@@ -54,9 +54,6 @@ var GalleryHeader = function GalleryHeader(_ref) {
|
|
|
54
54
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
55
55
|
className: "",
|
|
56
56
|
children: "Tipo de empaque"
|
|
57
|
-
}), shotThd && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
58
|
-
className: "",
|
|
59
|
-
children: "Tipo de imagen THD"
|
|
60
57
|
})]
|
|
61
58
|
});
|
|
62
59
|
};
|
|
@@ -762,8 +762,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
|
|
|
762
762
|
setSocketType: setSocketType,
|
|
763
763
|
changeImage: setImages,
|
|
764
764
|
selectedImages: selectedImages,
|
|
765
|
-
setSelectedImages: setSelectedImages
|
|
766
|
-
shotThd: shotThd
|
|
765
|
+
setSelectedImages: setSelectedImages
|
|
767
766
|
}, index + "-" + imageType.name);
|
|
768
767
|
});
|
|
769
768
|
};
|
package/package.json
CHANGED
|
@@ -21,8 +21,6 @@ export const GalleryElement = ({
|
|
|
21
21
|
selectedImages,
|
|
22
22
|
setSelectedImages,
|
|
23
23
|
setCheckAll,
|
|
24
|
-
setSocketType,
|
|
25
|
-
shotThd,
|
|
26
24
|
}) => {
|
|
27
25
|
const [statusValidation, setStatusValidation] = useState(validation);
|
|
28
26
|
const [showValidationPanel, setShowValidationPanel] = useState(false);
|
|
@@ -120,22 +118,6 @@ export const GalleryElement = ({
|
|
|
120
118
|
});
|
|
121
119
|
}}
|
|
122
120
|
/>
|
|
123
|
-
{shotThd && (
|
|
124
|
-
<Select
|
|
125
|
-
width="100%"
|
|
126
|
-
placeholder="Tipo de imagen THD"
|
|
127
|
-
options={imageShotType}
|
|
128
|
-
valueSelected={image.image_shot_type}
|
|
129
|
-
onChange={(e) => {
|
|
130
|
-
changeImage({
|
|
131
|
-
action: "changeShotType",
|
|
132
|
-
attribute: "image_shot_type",
|
|
133
|
-
value: +e.target.value,
|
|
134
|
-
index: number,
|
|
135
|
-
});
|
|
136
|
-
}}
|
|
137
|
-
/>
|
|
138
|
-
)}
|
|
139
121
|
</>
|
|
140
122
|
)}
|
|
141
123
|
</div>
|
|
@@ -20,7 +20,6 @@ export const GalleryHeader = ({ setCheckAll, setSelectedImages, shotThd }) => {
|
|
|
20
20
|
<p className="">Tipo de toma</p>
|
|
21
21
|
<p className="">Tipo de imagen</p>
|
|
22
22
|
<p className="">Tipo de empaque</p>
|
|
23
|
-
{shotThd && <p className="">Tipo de imagen THD</p>}
|
|
24
23
|
</Container>
|
|
25
24
|
);
|
|
26
25
|
};
|