contentoh-components-library 21.0.0 → 21.0.1

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.
@@ -119,7 +119,7 @@ var myBucket = new _awsSdk.default.S3({
119
119
  });
120
120
 
121
121
  var RetailerProductEdition = function RetailerProductEdition(_ref) {
122
- var _productSelected$reta, _servicesData$filter$, _servicesData$filter$2, _product$services, _datasheets$, _datasheets$$data, _product$services2, _product$article4, _product$services3;
122
+ var _productSelected$reta, _product$services, _datasheets$, _datasheets$$data, _product$services2, _product$article4, _product$services3;
123
123
 
124
124
  var tabsSections = _ref.tabsSections,
125
125
  _ref$productSelected = _ref.productSelected,
@@ -1477,12 +1477,8 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1477
1477
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
1478
1478
  tabsSections: tabsSections,
1479
1479
  status: {
1480
- Descripción: (_servicesData$filter$ = servicesData.filter(function (service) {
1481
- return service.id_retailer === (activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id) && service.service === "description";
1482
- })[0]) === null || _servicesData$filter$ === void 0 ? void 0 : _servicesData$filter$.status,
1483
- "Ficha técnica": (_servicesData$filter$2 = servicesData.filter(function (service) {
1484
- return service.id_retailer === (activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id) && service.service === "datasheet";
1485
- })[0]) === null || _servicesData$filter$2 === void 0 ? void 0 : _servicesData$filter$2.status,
1480
+ Descripción: product === null || product === void 0 ? void 0 : product.description_status,
1481
+ "Ficha técnica": product === null || product === void 0 ? void 0 : product.datasheet_status,
1486
1482
  Imágenes: product === null || product === void 0 ? void 0 : product.images_status
1487
1483
  },
1488
1484
  activeTab: activeTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.0.0",
3
+ "version": "21.0.1",
4
4
  "dependencies": {
5
5
  "@babel/runtime": "^7.17.2",
6
6
  "@storybook/addon-postcss": "^2.0.0",
@@ -984,16 +984,8 @@ export const RetailerProductEdition = ({
984
984
  <FullTabsMenu
985
985
  tabsSections={tabsSections}
986
986
  status={{
987
- Descripción: servicesData.filter(
988
- (service) =>
989
- service.id_retailer === activeRetailer?.id &&
990
- service.service === "description"
991
- )[0]?.status,
992
- "Ficha técnica": servicesData.filter(
993
- (service) =>
994
- service.id_retailer === activeRetailer?.id &&
995
- service.service === "datasheet"
996
- )[0]?.status,
987
+ Descripción: product?.description_status,
988
+ "Ficha técnica": product?.datasheet_status,
997
989
  Imágenes: product?.images_status,
998
990
  }}
999
991
  activeTab={activeTab}