contentoh-components-library 21.3.79 → 21.3.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.
@@ -226,17 +226,6 @@ export const RetailerProductEdition = ({
226
226
  const [compare, setCompare] = useState(false);
227
227
  const [valRejAll, setValRejAll] = useState(false);
228
228
 
229
- //! ==========================================Daniel===========================================
230
- /* ====================================== Cambios =================================*/
231
- const [desc, setDesc] = useState([])
232
- const [fich, setFich] = useState([])
233
- const [imag, setImag] = useState([])
234
-
235
-
236
- /* ------------------------------------- Cambios ----------------------------------*/
237
- //! ==========================================Daniel===========================================
238
-
239
-
240
229
  useEffect(async () => {
241
230
  const { id_article } = product?.article || {};
242
231
  if (id_article)
@@ -465,7 +454,6 @@ export const RetailerProductEdition = ({
465
454
  value: e?.id,
466
455
  name: e?.type_shot,
467
456
  }));
468
-
469
457
  return images?.values?.map((image, index) => (
470
458
  <GalleryElement
471
459
  setCheckAll={setCheckAll}
@@ -489,8 +477,6 @@ export const RetailerProductEdition = ({
489
477
  ));
490
478
  };
491
479
 
492
-
493
-
494
480
  const saveDescriptions = async () => {
495
481
  const dataClean = updatedDescriptions.filter((f) => f.value !== "");
496
482
  if (dataClean.length > 0) {
@@ -1365,20 +1351,13 @@ export const RetailerProductEdition = ({
1365
1351
  isRetailer={isRetailer}
1366
1352
  showSaveButton={auditorAssigned() || userAssigned()}
1367
1353
  version={version}
1368
-
1369
- desc={ desc }
1370
- setDesc={ setDesc }
1371
- fich={fich}
1372
- setFich={setFich}
1373
- imag={imag}
1374
- setImag={setImag}
1375
1354
  updatedDescriptions={updatedDescriptions}
1376
1355
  updatedDatasheets={updatedDatasheets}
1356
+ images={images}
1377
1357
  selectedImages={selectedImages}
1378
1358
  setUpdatedDescriptions={setUpdatedDescriptions}
1379
1359
  setUpdatedDatasheets={setUpdatedDatasheets}
1380
1360
  setSelectedImages={setSelectedImages}
1381
-
1382
1361
  setShowVersionSelector={setShowVersionSelector}
1383
1362
  onClickSave={() => {
1384
1363
  switch (activeTab) {
@@ -1423,7 +1402,6 @@ export const RetailerProductEdition = ({
1423
1402
  />
1424
1403
  )}
1425
1404
 
1426
- {/* Active tab */}
1427
1405
  {activeTab === "Ficha técnica" &&
1428
1406
  (product?.datasheet_status !== "NS" ? (
1429
1407
  datasheets[0]?.data?.map((dataGroup, index) => (
@@ -1446,8 +1424,6 @@ export const RetailerProductEdition = ({
1446
1424
  headerType={"input-name-header"}
1447
1425
  />
1448
1426
  ))}
1449
-
1450
-
1451
1427
  {activeTab === "Descripción" &&
1452
1428
  (product?.description_status !== "NS" ? (
1453
1429
  <InputGroup
@@ -1461,7 +1437,6 @@ export const RetailerProductEdition = ({
1461
1437
  dinamicHeight={true}
1462
1438
  compare={compare}
1463
1439
  />
1464
-
1465
1440
  ) : (
1466
1441
  <ScreenHeader
1467
1442
  text={"No cuentas con este servicio"}