contentoh-components-library 21.3.18 → 21.3.19

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.
Files changed (196) hide show
  1. package/.env.development +0 -5
  2. package/dist/assets/images/generalButton/closeIcon.svg +2 -2
  3. package/dist/components/atoms/GeneralInput/index.js +14 -1
  4. package/dist/components/atoms/ProgressBar/index.js +6 -36
  5. package/dist/components/atoms/ProgressBar/styles.js +3 -11
  6. package/dist/components/molecules/CustomSelect/CustomSelect.stories.js +22 -21
  7. package/dist/components/molecules/CustomSelect/SelectItem.js +1 -10
  8. package/dist/components/molecules/HeaderTop/index.js +6 -23
  9. package/dist/components/molecules/HeaderTop/styles.js +1 -1
  10. package/dist/components/molecules/ProductNameHeader/index.js +4 -6
  11. package/dist/components/organisms/FullProductNameHeader/index.js +0 -1
  12. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +50 -65
  13. package/dist/components/pages/ProviderProductEdition/index.js +11 -15
  14. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +44 -36
  15. package/dist/components/pages/RetailerProductEdition/index.js +12 -13
  16. package/dist/global-files/data.js +23 -18
  17. package/dist/global-files/fonts.css +0 -6
  18. package/dist/global-files/variables.js +0 -2
  19. package/dist/index.js +46 -267
  20. package/package.json +1 -12
  21. package/src/assets/images/generalButton/closeIcon.svg +2 -2
  22. package/src/components/atoms/GeneralInput/index.js +10 -0
  23. package/src/components/atoms/ProgressBar/index.js +5 -40
  24. package/src/components/atoms/ProgressBar/styles.js +0 -24
  25. package/src/components/molecules/CustomSelect/CustomSelect.stories.js +12 -20
  26. package/src/components/molecules/CustomSelect/SelectItem.js +0 -7
  27. package/src/components/molecules/HeaderTop/index.js +8 -29
  28. package/src/components/molecules/HeaderTop/styles.js +0 -4
  29. package/src/components/molecules/ProductNameHeader/index.js +2 -7
  30. package/src/components/organisms/FullProductNameHeader/index.js +0 -1
  31. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +49 -67
  32. package/src/components/pages/ProviderProductEdition/index.js +9 -16
  33. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +46 -36
  34. package/src/components/pages/RetailerProductEdition/index.js +10 -14
  35. package/src/global-files/data.js +23 -18
  36. package/src/global-files/fonts.css +0 -6
  37. package/src/global-files/variables.js +0 -2
  38. package/src/index.js +0 -17
  39. package/dist/assets/images/customSelect/starIcon.svg +0 -14
  40. package/dist/assets/images/defaultImages/Spinner.gif +0 -0
  41. package/dist/assets/images/defaultImages/notFound.svg +0 -124
  42. package/dist/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +0 -72
  43. package/dist/components/atoms/ButtonFileChooser/index.js +0 -110
  44. package/dist/components/atoms/ButtonFileChooser/styles.js +0 -20
  45. package/dist/components/atoms/ButtonV2/ButtonV2.stories.js +0 -66
  46. package/dist/components/atoms/ButtonV2/index.js +0 -110
  47. package/dist/components/atoms/ButtonV2/styles.js +0 -53
  48. package/dist/components/atoms/CustomIcon/CustomIcon.stories.js +0 -50
  49. package/dist/components/atoms/CustomIcon/index.js +0 -40
  50. package/dist/components/atoms/CustomIcon/styles.js +0 -33
  51. package/dist/components/atoms/IconFile/IconFile.stories.js +0 -48
  52. package/dist/components/atoms/IconFile/index.js +0 -249
  53. package/dist/components/atoms/IconFile/styles.js +0 -23
  54. package/dist/components/atoms/Image/Image.stories.js +0 -73
  55. package/dist/components/atoms/Image/index.js +0 -76
  56. package/dist/components/atoms/Image/styles.js +0 -43
  57. package/dist/components/atoms/ImageLink/ImageLink.stories.js +0 -63
  58. package/dist/components/atoms/ImageLink/index.js +0 -77
  59. package/dist/components/atoms/ImageLink/styles.js +0 -40
  60. package/dist/components/atoms/ImagePreview/ImagePreview.stories.js +0 -70
  61. package/dist/components/atoms/ImagePreview/index.js +0 -208
  62. package/dist/components/atoms/ImagePreview/styles.js +0 -44
  63. package/dist/components/atoms/InputText/InputText.stories.js +0 -60
  64. package/dist/components/atoms/InputText/index.js +0 -66
  65. package/dist/components/atoms/InputText/styles.js +0 -32
  66. package/dist/components/atoms/NotFound/NotFound.stories.js +0 -36
  67. package/dist/components/atoms/NotFound/index.js +0 -75
  68. package/dist/components/atoms/NotFound/styles.js +0 -20
  69. package/dist/components/atoms/SelectItemV2/SelectItemV2.stories.js +0 -45
  70. package/dist/components/atoms/SelectItemV2/index.js +0 -57
  71. package/dist/components/atoms/SelectItemV2/styles.js +0 -30
  72. package/dist/components/atoms/Tooltip/Tooltip.stories.js +0 -66
  73. package/dist/components/atoms/Tooltip/index.js +0 -72
  74. package/dist/components/atoms/Tooltip/styles.js +0 -20
  75. package/dist/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +0 -66
  76. package/dist/components/molecules/ButtonDownloadFile/index.js +0 -179
  77. package/dist/components/molecules/ButtonDownloadFile/styles.js +0 -23
  78. package/dist/components/molecules/Dropdown/Dropdown.stories.js +0 -98
  79. package/dist/components/molecules/Dropdown/index.js +0 -150
  80. package/dist/components/molecules/Dropdown/styles.js +0 -26
  81. package/dist/components/molecules/ImageTooltip/ImageTooltip.stories.js +0 -82
  82. package/dist/components/molecules/ImageTooltip/index.js +0 -85
  83. package/dist/components/molecules/ImageTooltip/styles.js +0 -33
  84. package/dist/components/molecules/SelectV2/SelectV2.stories.js +0 -120
  85. package/dist/components/molecules/SelectV2/index.js +0 -306
  86. package/dist/components/molecules/SelectV2/styles.js +0 -42
  87. package/dist/components/molecules/SelectV2/test.js +0 -95
  88. package/dist/components/molecules/SelectV2/test.stories.js +0 -27
  89. package/dist/components/organisms/Chat/Chat.stories.js +0 -160
  90. package/dist/components/organisms/Chat/ChatLists/ChatLists.stories.js +0 -83
  91. package/dist/components/organisms/Chat/ChatLists/index.js +0 -160
  92. package/dist/components/organisms/Chat/ChatLists/styles.js +0 -29
  93. package/dist/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +0 -176
  94. package/dist/components/organisms/Chat/ContainerItems/index.js +0 -537
  95. package/dist/components/organisms/Chat/ContainerItems/styles.js +0 -20
  96. package/dist/components/organisms/Chat/ContentChat/ContentChat.stories.js +0 -142
  97. package/dist/components/organisms/Chat/ContentChat/index.js +0 -1429
  98. package/dist/components/organisms/Chat/ContentChat/styles.js +0 -20
  99. package/dist/components/organisms/Chat/Footer/Footer.stories.js +0 -43
  100. package/dist/components/organisms/Chat/Footer/index.js +0 -976
  101. package/dist/components/organisms/Chat/Footer/styles.js +0 -32
  102. package/dist/components/organisms/Chat/Header/Header.stories.js +0 -96
  103. package/dist/components/organisms/Chat/Header/index.js +0 -84
  104. package/dist/components/organisms/Chat/Header/styles.js +0 -20
  105. package/dist/components/organisms/Chat/index.js +0 -253
  106. package/dist/components/organisms/Chat/styles.js +0 -29
  107. package/dist/components/organisms/Modal/Modal.stories.js +0 -66
  108. package/dist/components/organisms/Modal/index.js +0 -95
  109. package/dist/components/organisms/Modal/styles.js +0 -20
  110. package/dist/components/organisms/RangeCalendar/RangeCalendar.stories.js +0 -33
  111. package/dist/components/organisms/RangeCalendar/index.js +0 -149
  112. package/dist/components/organisms/RangeCalendar/styles.js +0 -27
  113. package/dist/global-files/handle_http.js +0 -381
  114. package/dist/global-files/handle_userTech.js +0 -20
  115. package/dist/global-files/utils.js +0 -514
  116. package/src/assets/images/customSelect/starIcon.svg +0 -14
  117. package/src/assets/images/defaultImages/Spinner.gif +0 -0
  118. package/src/assets/images/defaultImages/notFound.svg +0 -124
  119. package/src/components/atoms/ButtonFileChooser/ButtonFileChooser.stories.js +0 -47
  120. package/src/components/atoms/ButtonFileChooser/index.js +0 -68
  121. package/src/components/atoms/ButtonFileChooser/styles.js +0 -4
  122. package/src/components/atoms/ButtonV2/ButtonV2.stories.js +0 -53
  123. package/src/components/atoms/ButtonV2/index.js +0 -85
  124. package/src/components/atoms/ButtonV2/styles.js +0 -217
  125. package/src/components/atoms/CustomIcon/CustomIcon.stories.js +0 -36
  126. package/src/components/atoms/CustomIcon/index.js +0 -41
  127. package/src/components/atoms/CustomIcon/styles.js +0 -85
  128. package/src/components/atoms/IconFile/IconFile.stories.js +0 -35
  129. package/src/components/atoms/IconFile/index.js +0 -119
  130. package/src/components/atoms/IconFile/styles.js +0 -67
  131. package/src/components/atoms/Image/Image.stories.js +0 -51
  132. package/src/components/atoms/Image/index.js +0 -55
  133. package/src/components/atoms/Image/styles.js +0 -34
  134. package/src/components/atoms/ImageLink/ImageLink.stories.js +0 -43
  135. package/src/components/atoms/ImageLink/index.js +0 -57
  136. package/src/components/atoms/ImageLink/styles.js +0 -30
  137. package/src/components/atoms/ImagePreview/ImagePreview.stories.js +0 -52
  138. package/src/components/atoms/ImagePreview/index.js +0 -178
  139. package/src/components/atoms/ImagePreview/styles.js +0 -77
  140. package/src/components/atoms/InputText/InputText.stories.js +0 -39
  141. package/src/components/atoms/InputText/index.js +0 -61
  142. package/src/components/atoms/InputText/styles.js +0 -89
  143. package/src/components/atoms/NotFound/NotFound.stories.js +0 -19
  144. package/src/components/atoms/NotFound/index.js +0 -52
  145. package/src/components/atoms/NotFound/styles.js +0 -55
  146. package/src/components/atoms/SelectItemV2/SelectItemV2.stories.js +0 -26
  147. package/src/components/atoms/SelectItemV2/index.js +0 -61
  148. package/src/components/atoms/SelectItemV2/styles.js +0 -90
  149. package/src/components/atoms/Tooltip/Tooltip.stories.js +0 -51
  150. package/src/components/atoms/Tooltip/index.js +0 -59
  151. package/src/components/atoms/Tooltip/styles.js +0 -42
  152. package/src/components/molecules/ButtonDownloadFile/DownloadFile.stories.js +0 -54
  153. package/src/components/molecules/ButtonDownloadFile/index.js +0 -109
  154. package/src/components/molecules/ButtonDownloadFile/styles.js +0 -66
  155. package/src/components/molecules/Dropdown/Dropdown.stories.js +0 -103
  156. package/src/components/molecules/Dropdown/index.js +0 -150
  157. package/src/components/molecules/Dropdown/styles.js +0 -75
  158. package/src/components/molecules/ImageTooltip/ImageTooltip.stories.js +0 -68
  159. package/src/components/molecules/ImageTooltip/index.js +0 -63
  160. package/src/components/molecules/ImageTooltip/styles.js +0 -18
  161. package/src/components/molecules/SelectV2/SelectV2.stories.js +0 -115
  162. package/src/components/molecules/SelectV2/index.js +0 -357
  163. package/src/components/molecules/SelectV2/styles.js +0 -105
  164. package/src/components/molecules/SelectV2/test.js +0 -61
  165. package/src/components/molecules/SelectV2/test.stories.js +0 -10
  166. package/src/components/organisms/Chat/Chat.stories.js +0 -147
  167. package/src/components/organisms/Chat/ChatLists/ChatLists.stories.js +0 -65
  168. package/src/components/organisms/Chat/ChatLists/Rotoplas.jpeg +0 -0
  169. package/src/components/organisms/Chat/ChatLists/THD.png +0 -0
  170. package/src/components/organisms/Chat/ChatLists/index.js +0 -141
  171. package/src/components/organisms/Chat/ChatLists/styles.js +0 -162
  172. package/src/components/organisms/Chat/ContainerItems/ContainerItems.stories.js +0 -142
  173. package/src/components/organisms/Chat/ContainerItems/index.js +0 -512
  174. package/src/components/organisms/Chat/ContainerItems/styles.js +0 -328
  175. package/src/components/organisms/Chat/ContentChat/ContentChat.stories.js +0 -102
  176. package/src/components/organisms/Chat/ContentChat/Rotoplas.jpeg +0 -0
  177. package/src/components/organisms/Chat/ContentChat/THD.png +0 -0
  178. package/src/components/organisms/Chat/ContentChat/index.js +0 -897
  179. package/src/components/organisms/Chat/ContentChat/styles.js +0 -41
  180. package/src/components/organisms/Chat/Footer/Footer.stories.js +0 -22
  181. package/src/components/organisms/Chat/Footer/index.js +0 -661
  182. package/src/components/organisms/Chat/Footer/styles.js +0 -286
  183. package/src/components/organisms/Chat/Header/Header.stories.js +0 -66
  184. package/src/components/organisms/Chat/Header/index.js +0 -94
  185. package/src/components/organisms/Chat/Header/styles.js +0 -49
  186. package/src/components/organisms/Chat/index.js +0 -235
  187. package/src/components/organisms/Chat/styles.js +0 -42
  188. package/src/components/organisms/Modal/Modal.stories.js +0 -55
  189. package/src/components/organisms/Modal/index.js +0 -97
  190. package/src/components/organisms/Modal/styles.js +0 -103
  191. package/src/components/organisms/RangeCalendar/RangeCalendar.stories.js +0 -16
  192. package/src/components/organisms/RangeCalendar/index.js +0 -121
  193. package/src/components/organisms/RangeCalendar/styles.js +0 -883
  194. package/src/global-files/handle_http.js +0 -225
  195. package/src/global-files/handle_userTech.js +0 -7
  196. package/src/global-files/utils.js +0 -330
@@ -1,5 +1,4 @@
1
1
  import { CustomSelect } from "./index";
2
- import iconStar from "../../../assets/images/customSelect/starIcon.svg";
3
2
 
4
3
  export default {
5
4
  title: "Components/molecules/CustomSelect",
@@ -9,27 +8,20 @@ export default {
9
8
  const Template = (args) => <CustomSelect {...args} />;
10
9
  export const CustomSelectDefault = Template.bind({});
11
10
  CustomSelectDefault.args = {
12
- // selectLabel: "Todos los departamentos",
11
+ selectLabel: "Todos los departamentos",
13
12
  defaultOption: "Todos los departamentos",
14
13
  options: [
15
- {
16
- id: 47,
17
- name: "Enero 2023",
18
- isSelected: true,
19
- },
20
- {
21
- id: 49,
22
- name: "Mis Favoritos",
14
+ {
15
+ id: 1,
16
+ value: "Decoración",
17
+ subOptions: [
18
+ { id: 1, value: "Espejos" },
19
+ { id: 2, value: "Persianas" },
20
+ ],
23
21
  },
22
+ { id: 2, value: "Eléctrico" },
23
+ { id: 3, value: "Ferretería" },
24
+ { id: 4, value: "Herramientas" },
25
+ { id: 5, value: "Iluminación" },
24
26
  ],
25
- onClickItem: (v, id) => {
26
- if (v) {
27
- console.log("Agregar a la lista", id);
28
- } else {
29
- console.log("Eliminar a la lista", id);
30
- }
31
- },
32
- icon: iconStar,
33
- showSearchBar: true,
34
- customOptions: <p>Esto es un customOptions</p>
35
27
  };
@@ -7,7 +7,6 @@ export const SelecItem = ({
7
7
  setParameterArray,
8
8
  activeFilters,
9
9
  setActiveFilters,
10
- onClickItem,
11
10
  }) => {
12
11
  const [showSubOptions, setShowSubOptions] = useState(false);
13
12
  const [chkGlobal, setChkGlobal] = useState(false);
@@ -18,9 +17,6 @@ export const SelecItem = ({
18
17
  id={"main-item-" + option.id}
19
18
  label={option.name}
20
19
  onChange={(e) => {
21
- if (onClickItem) {
22
- onClickItem(e.target.checked, option.id)
23
- }
24
20
  const subOptions = option.subOptions;
25
21
  const filtersCopy = { ...activeFilters };
26
22
  if (subOptions) {
@@ -81,9 +77,6 @@ export const SelecItem = ({
81
77
  activeFilters[option.name][sub.name]
82
78
  }
83
79
  onChange={(e) => {
84
- if (onClickItem) {
85
- onClickItem(e.target.checked, sub.id)
86
- }
87
80
  if (e.target.checked) {
88
81
  setParameterArray((current) =>
89
82
  [...current, sub.id].sort((a, b) => a - b)
@@ -1,15 +1,9 @@
1
1
  import { Container } from "./styles";
2
2
  import { ScreenHeader } from "../../atoms/ScreenHeader/index";
3
3
  import { Button } from "../../atoms/GeneralButton/index";
4
- import { useEffect, useRef, useState } from "react";
5
- import { Chat } from "../../organisms/Chat";
4
+ import { useEffect, useRef } from "react";
6
5
 
7
- export const HeaderTop = ({
8
- setHeaderTop,
9
- withChat,
10
- productSelected,
11
- token,
12
- }) => {
6
+ export const HeaderTop = ({ setHeaderTop }) => {
13
7
  const headerTop = useRef();
14
8
 
15
9
  useEffect(() => {
@@ -19,27 +13,12 @@ export const HeaderTop = ({
19
13
  return (
20
14
  <Container ref={headerTop}>
21
15
  <ScreenHeader text="Edición de producto" />
22
- <div className="buttons-top">
23
- {withChat && (
24
- <Chat
25
- chatType="merchant_product"
26
- chatContainerType="popUp"
27
- chatData={{
28
- userToken: token,
29
- id: productSelected.id_article,
30
- version: productSelected.version,
31
- }}
32
- size={18}
33
- />
34
- )}
35
-
36
- <Button
37
- buttonType="close-button"
38
- onClick={() => {
39
- window.location.href = `/products`;
40
- }}
41
- />
42
- </div>
16
+ <Button
17
+ buttonType="close-button"
18
+ onClick={() => {
19
+ window.location.href = `/products`;
20
+ }}
21
+ />
43
22
  </Container>
44
23
  );
45
24
  };
@@ -3,8 +3,4 @@ import styled from "styled-components";
3
3
  export const Container = styled.div`
4
4
  display: flex;
5
5
  justify-content: space-between;
6
- .buttons-top {
7
- display: flex;
8
- align-items: center;
9
- }
10
6
  `;
@@ -10,17 +10,12 @@ export const ProductNameHeader = ({
10
10
  percent,
11
11
  priority,
12
12
  date,
13
- percentRequired,
14
13
  }) => {
15
14
  return (
16
15
  <Container>
17
16
  <ScreenHeader headerType={"product-name-header"} text={productName} />
18
- {statusType && <Status statusType={statusType} />}
19
- <ProgressBar
20
- percent={percentRequired}
21
- progressBarType={statusType}
22
- percentRequired={percentRequired}
23
- />
17
+ <Status statusType={statusType} />
18
+ <ProgressBar percent={percent} progressBarType={statusType} />
24
19
  <PriorityFlag priority={priority} />
25
20
  <ScreenHeader headerType={"date-header"} text={date} />
26
21
  </Container>
@@ -42,7 +42,6 @@ export const FullProductNameHeader = ({
42
42
  headerData?.status ||
43
43
  headerData?.article_status
44
44
  }
45
- percentRequired={percent}
46
45
  percent={percent?.toFixed(0)}
47
46
  priority={headerData?.prio}
48
47
  date={new Date(
@@ -16,76 +16,74 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: true,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIwM2ViMjZhMC1hYjU2LTQ3NjctYjY0Zi04NDkyNTgwNzcwMmEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjAzZWIyNmEwLWFiNTYtNDc2Ny1iNjRmLTg0OTI1ODA3NzAyYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJmNmNkMzA1My1iODE4LTQzYzgtOGZhMC0yNTZmMTBhMDYwNjciLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY3NDU5OTgwNiwibmFtZSI6IlBydWViYSBNZXJjaGFudHMiLCJwaG9uZV9udW1iZXIiOiIrNTIxMjM0NTY3ODkxIiwiZXhwIjoxNjc0NjAzNDA2LCJpYXQiOjE2NzQ1OTk4MDYsImVtYWlsIjoibWVyY2hhbnRzMjRlbmVAYWxsZnJlZW1haWwubmV0In0.osGY8Rdr20hTwL86dZ_CzXxHLvPe-L0iaLtWVwJ78prdMlbDoEZWNePr-Di1rb8F2efV6FAsf9mELW6Tw3PETo_d5yeDEPVAGD0pXFvVntTlSrJGtfEDMnpNWTG2uaMlL1_zJ8BcFYmIUniZN8VvEKW6ezFOt01cK3We-Vrv92TqKa-ePQRkDnhKu52nnTgxs5aysGf-mYLxLumQ4TcOPXJ2x6OsszedJaujFDeCPN7JVGbg9HC68__WklpgocSasU6fQg4Glh1kXWQ-fy4XaFw6cBParJjkqic2Gg1iqwB5wGbrwD4E0crZyPkgwwPydTLLu6WguGWBuQHhcoG-xg",
19
+ "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyOWY3YWY3Zi0yNmQ0LTRiMWItODZmZS0zOWY2ZTUyMDFhNzAiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2OTkyNzAyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2Njk5MzA2MjEsImlhdCI6MTY2OTkyNzAyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.NK6hVSiBksguboJ1m8yYqtDq19kzgE3GqYDEJHLUya_n_TsXriv6W1ypq7XiSo9zrqWcmHBpOoJQS7WbWzjGe__NlJEXjo8bykS8QBTTOiMrKxz1KzGRYJkwgG0axk-zVysUQH0_y-fbwgEgMPtd6qO46DB_KlFI_PEL1-uR5MJ9U0kNkS61gMbHwFQFs_DU-sS01NxjBsjUEp783rs1r-jm7TelZac1rGaFNUyi5vHdSozYzlnzfzGcuACZ0lHqvah2FHbDyurp-G_uhpUn5lNmcL4rVNh2lDd4TOnhJ3AtN1wGSmtErmhjmBHTvavh1ub9pklA1B9qjVuTRpYANw",
20
20
  articleId: 238,
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- category: "Decoración|Accesorios Decorativos|Accesorios Decorativos",
25
- company_name: "merchants24ene@allfreemail.net",
26
- company_id: 918,
27
- id_category: "2028",
28
- id_article: 432,
29
- name: "VELA AROMA 18 OZ MAN/CAN",
30
- upc: "102852",
24
+ id_article: 3,
25
+ id_category: 2032,
26
+ name: "CORTINA BLACKOUT DE POLIÉSTER CAFÉ 2.13 X 1.06 M",
27
+ upc: "161157",
28
+ timestamp: "2022-11-14T16:02:47.000Z",
29
+ categoryName: "Decoración|Cortinas y Persianas|Cortinas",
31
30
  version: 1,
32
31
  retailersAvailable: [
33
32
  {
34
- id: 68,
35
- name: "The Home Depot Merchants",
33
+ name: "The Home Depot Golden",
34
+ id: 58,
36
35
  },
37
36
  ],
38
37
  },
39
38
  productToEdit: {
40
- idCategory: "2028",
41
- ArticleId: 432,
39
+ idCategory: 2032,
40
+ ArticleId: 3,
42
41
  product: [
43
42
  {
44
- category: "Decoración|Accesorios Decorativos|Accesorios Decorativos",
45
- company_name: "merchants24ene@allfreemail.net",
46
- company_id: 918,
47
- id_category: "2028",
48
- id_article: 432,
49
- name: "VELA AROMA 18 OZ MAN/CAN",
50
- upc: "102852",
43
+ id_article: 3,
44
+ id_category: 2032,
45
+ name: "CORTINA BLACKOUT DE POLIÉSTER CAFÉ 2.13 X 1.06 M",
46
+ upc: "161157",
47
+ timestamp: "2022-11-14T16:02:47.000Z",
48
+ categoryName: "Decoración|Cortinas y Persianas|Cortinas",
51
49
  version: 1,
52
50
  retailersAvailable: [
53
51
  {
54
- id: 68,
55
- name: "The Home Depot Merchants",
52
+ name: "The Home Depot Golden",
53
+ id: 58,
56
54
  },
57
55
  ],
58
56
  },
59
57
  ],
60
58
  },
61
59
  location: {
62
- state: { origin: "Contentoh", withChat: true },
60
+ state: { origin: "Contentoh" },
63
61
  },
64
62
  user: {
65
- id_user: 140,
66
- name: "Prueba",
67
- last_name: "Merchants",
68
- email: "merchants24ene@allfreemail.net",
69
- position: "merchants24ene@allfreemail.net",
70
- telephone: "+521234567891",
63
+ id_user: 28,
64
+ name: "Ismael",
65
+ last_name: "López",
66
+ email: "ilopez@contentoh.com",
67
+ position: "Test States",
68
+ telephone: "+523111366336",
71
69
  country: "México",
72
- id_company: 918,
73
- id_cognito: "03eb26a0-ab56-4767-b64f-84925807702a",
70
+ id_company: 1,
71
+ id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
74
72
  birth_Date: null,
75
- about_me: null,
76
- zip_code: null,
77
- address: null,
78
- job: null,
79
- id_stripe: null,
73
+ about_me: "",
74
+ zip_code: "",
75
+ address: "",
76
+ job: "",
77
+ id_stripe: "cus_KuEt6R6vwmN09f",
80
78
  id_role: 0,
81
79
  active: 1,
82
80
  is_retailer: 0,
83
- email_notify: 1,
84
- is_user_tech: null,
81
+ email_notify: 0,
82
+ is_user_tech: "AS",
85
83
  membership: {
86
- id: 109,
87
- start_date: "2023-01-24T22:07:34.000Z",
88
- end_date: "2024-01-24T22:07:34.000Z",
84
+ id: 76,
85
+ start_date: "2022-01-18T17:25:35.000Z",
86
+ end_date: "2023-01-18T17:25:35.000Z",
89
87
  planID: 8,
90
88
  plan: "prod_KtlhECVSFG2iro",
91
89
  name: "Plan Pro",
@@ -93,37 +91,21 @@ ProviderProductEditionDefault.args = {
93
91
  products_limit: "5000",
94
92
  type: "Enterprise",
95
93
  },
96
- src: "https://content-management-profile.s3.amazonaws.com/id-140/140.png?1674599807427",
94
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1669927021851",
97
95
  },
98
96
  company: {
99
- id_company: 918,
100
- trade_name: "merchants24ene@allfreemail.net",
101
- company_name: "merchants24ene@allfreemail.net",
102
- rfc: "merchants24ene@allfreemail.net",
103
- adress: "merchants24ene@allfreemail.net",
104
- about_company: null,
105
- telephone: null,
106
- web_site: null,
107
- zip_code: null,
97
+ id_company: 1,
98
+ trade_name: "GRUPO BRAHMA",
99
+ company_name: "GRUPO BRAHMA",
100
+ rfc: "XAXX010101000",
101
+ adress: "AA",
102
+ about_company: "",
103
+ telephone: "",
104
+ web_site: "",
105
+ zip_code: "",
108
106
  email: null,
109
- social_link: null,
107
+ social_link: "",
110
108
  is_retailer: 0,
111
- financedRetailers: [
112
- {
113
- id: 68,
114
- name: "The Home Depot Merchants",
115
- country: "México",
116
- id_region: 1,
117
- active: 1,
118
- },
119
- ],
120
- retailers: [
121
- {
122
- id: null,
123
- name: null,
124
- country: null,
125
- },
126
- ],
127
109
  },
128
110
  showSurvey: (v) => v && alert("se muestra"),
129
111
  };
@@ -42,7 +42,6 @@ import Slide1_4 from "../../../assets/images/sliderToolTip/slide4.svg";
42
42
  import Slide1_5 from "../../../assets/images/sliderToolTip/slide5.svg";
43
43
  import { VersionSelector } from "../../organisms/VersionSelector";
44
44
  import { useCloseModal } from "../../../global-files/customHooks";
45
- import { number } from "prop-types";
46
45
 
47
46
  const reducerImages = (state, action) => {
48
47
  let { values, attrForImgs, inputsByRetailer } = state;
@@ -134,7 +133,6 @@ export const ProviderProductEdition = ({
134
133
  setShowContentohRequestModal,
135
134
  showSurvey,
136
135
  company,
137
- withChat,
138
136
  }) => {
139
137
  const [activeTab, setActiveTab] = useState("Descripción");
140
138
  const [activeImage, setActiveImage] = useState();
@@ -274,7 +272,8 @@ export const ProviderProductEdition = ({
274
272
 
275
273
  setImages({ action: "init", init: services[2] });
276
274
  if (services[2]?.values?.length > 0) setActiveImage(0);
277
- getPercentage({ data: [product] }).then((res) => setPercentages(res[0]));
275
+
276
+ getPercentage({ data: [product] }).then((res) => setPercentages(res));
278
277
  setLoading(false);
279
278
  };
280
279
 
@@ -364,13 +363,12 @@ export const ProviderProductEdition = ({
364
363
  useEffect(() => {
365
364
  const productTemp = product;
366
365
  const retailers = productTemp?.retailersAvailable || productTemp?.retailers;
367
- if (Object.keys(percentages[productTemp.id_article] ?? {})?.length > 0) {
368
- retailers?.forEach((retailer, index) => {
369
- retailer["percentage"] = Number(
370
- percentages[productTemp.id_article][retailer.id].percentageRequired
371
- );
372
- });
373
- }
366
+ retailers?.forEach((retailer) => {
367
+ retailer["percentage"] = percentages?.find(
368
+ (percent) => retailer?.id === percent?.id_retailer
369
+ )?.percentage;
370
+ });
371
+
374
372
  setProduct(productTemp);
375
373
  setActivePercentage(retailers[0]?.percentage);
376
374
  }, [percentages]);
@@ -1058,12 +1056,7 @@ export const ProviderProductEdition = ({
1058
1056
  ];
1059
1057
  return (
1060
1058
  <Container headerTop={headerTop}>
1061
- <HeaderTop
1062
- setHeaderTop={setHeaderTop}
1063
- withChat={location?.state?.withChat}
1064
- productSelected={productSelected}
1065
- token={token}
1066
- />
1059
+ <HeaderTop setHeaderTop={setHeaderTop} />
1067
1060
  <div className="data-container">
1068
1061
  <div className="image-data-panel">
1069
1062
  <ImagePreviewer
@@ -12,49 +12,54 @@ export const RetailerProductEditionDefault = Template.bind({});
12
12
  RetailerProductEditionDefault.args = {
13
13
  tabsSections: {
14
14
  Descripción: true,
15
- "Ficha técnica": true,
16
- Imágenes: true,
15
+ "Ficha técnica": false,
16
+ Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJmMzY2YTdjYi02YjA0LTRiMzAtOTJmYy1iMzY0MmY3ZjEzNmEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY3MTc0MzE0OSwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjcxNzQ2NzQ5LCJpYXQiOjE2NzE3NDMxNDksImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.J8kTv1sEotxoicaRclaK1r0tjVbwHPDxIzdDfxYo9J4XwBYYfS180__KYYE0Dh1AfUK_K0mrk2_78_rhTNxCQT85W7XS3ZEcxIOUekqoxaKFl8LSVN_eWz3SlsGG0yRflhJGt6d4gBVByXZbdNiyp1rkjgMln6fhwlRUnuGRbG1WKQvdAPli3qfH8mLzgoTz-6HWs1Jf2Ujheavf3ipGMNtj-OSUdQsh04Ov7jehDWdnPNn2s2DAl4eubgjdXrwIiBPCRkbuFeYZZJpzj1wy__a0nCM7bzly5uTZ2aWujgEJvf9bJb-Y4gkS8TxyJaggJ01ZsMki36aEpIt8J1tJag",
19
+ "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI0MmE2OWE4My02OGY0LTRmZjktOGU4Zi1jYzgxODQ5MDU5NGYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2OTkyODUxMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2OTkzMjExMSwiaWF0IjoxNjY5OTI4NTExLCJlbWFpbCI6ImV0Y0Bjb250ZW50b2guY29tIn0.Mv1hFVjkF2y__7XP0bXzU2Yq8YMc0go9OgB7all5F4HvfK62I0l9rNRqddlaLjDSCmjvyYI-M8WFwHtdlOL1-liazZr8hhu7_9SciapRzkuuHlWwu0g3EEK54NuHR3-YYRax85hKyN9YoV1MY_fTzT9WUVXWoqf4UPj2SH79g_A0l0lm18ODzzdhXFSpubuI8-Ml7MbXUh8klzl7T55S16sj8zPONpesrA01WsG1PWGqfRZI2g37edj_en2_fIcfi49tQjbSjnQOVOPnkO5TPiyoMtZdS53Rx75iSI8-fP-Z7kD-5TI_KK6vK35PHoG1B-N3EzDUjXek4MowNswnGA",
20
20
  productSelected: {
21
21
  services: {
22
22
  datasheets: 1,
23
23
  descriptions: 1,
24
24
  images: 1,
25
25
  },
26
- orderId: 194,
27
- status: "AC",
28
- datasheet_status: "AC",
26
+ orderId: 123,
27
+ status: "PA",
28
+ datasheet_status: "PA",
29
29
  prio: "none",
30
30
  version: 3,
31
- description_status: "AC",
32
- images_status: "AC",
31
+ description_status: "PA",
32
+ images_status: "PA",
33
33
  statusByRetailer: {
34
- 40: {
35
- description: "AC",
36
- images: "AC",
37
- datasheet: "AC",
34
+ 4: {
35
+ datasheet: "PA",
36
+ description: "PA",
37
+ images: "PA",
38
38
  },
39
- 43: {
40
- datasheet: "AC",
41
- description: "AC",
42
- images: "AC",
39
+ 5: {
40
+ datasheet: "PA",
41
+ description: "PA",
42
+ images: "PA",
43
+ },
44
+ 6: {
45
+ datasheet: "PA",
46
+ description: "PA",
47
+ images: "PA",
43
48
  },
44
49
  },
45
50
  article: {
46
- id_article: 354,
47
- id_category: "684",
48
- name: "Enjuague Bucal ",
49
- upc: "22342342",
50
- timestamp: "2023-01-03T16:19:49.000Z",
51
+ id_article: 127,
52
+ id_category: "700",
53
+ name: "prueba prod flujo",
54
+ upc: "34234353324",
55
+ timestamp: "2022-11-23T23:12:30.000Z",
51
56
  id_user: 28,
52
57
  status: "NULL",
53
58
  active: 1,
54
59
  company_id: 1,
55
60
  company_name: "GRUPO BRAHMA",
56
61
  country: "México",
57
- id_order: 194,
62
+ id_order: 123,
58
63
  id_datasheet_especialist: 54,
59
64
  id_datasheet_facilitator: 52,
60
65
  id_description_especialist: 54,
@@ -63,37 +68,42 @@ RetailerProductEditionDefault.args = {
63
68
  id_images_facilitator: 53,
64
69
  id_auditor: 37,
65
70
  id_recepcionist: null,
66
- category: "Salud y Belleza|Cuidado Bucal|Pastas Dentales y Aseo Bucal",
71
+ category:
72
+ "Salud y Belleza|Cuidado Facial|Cremas, Mascarillas y Tratamientos",
67
73
  missingAttributes: 0,
68
74
  missingDescriptions: 0,
69
75
  missingImages: 0,
70
76
  },
71
77
  retailers: [
72
78
  {
73
- id: 40,
74
- name: "Nadro",
79
+ id: 4,
80
+ name: "Walmart Super y Superama",
81
+ },
82
+ {
83
+ id: 5,
84
+ name: "Chedraui",
75
85
  },
76
86
  {
77
- id: 43,
78
- name: "City Club",
87
+ id: 6,
88
+ name: "HEB",
79
89
  },
80
90
  ],
81
91
  country: "México",
82
- upc: "22342342",
92
+ upc: "34234353324",
83
93
  },
84
94
  location: {
85
- product: { articleId: 354, versionId: 3 },
95
+ product: { articleId: 109485, versionId: 3 },
86
96
  },
87
97
  user: {
88
- id_user: 65,
89
- name: "Oscar Alberto",
90
- last_name: "Arenas",
91
- email: "oarenas@contentoh.com",
98
+ id_user: 51,
99
+ name: "ADMIN PRUEBA",
100
+ last_name: "",
101
+ email: "etc@contentoh.com",
92
102
  position: "",
93
103
  telephone: "",
94
104
  country: "",
95
105
  id_company: 2,
96
- id_cognito: "73cc8d40-c841-422a-a2f2-e69d7fe26ebf",
106
+ id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
97
107
  birth_Date: null,
98
108
  about_me: "",
99
109
  zip_code: "",
@@ -104,7 +114,7 @@ RetailerProductEditionDefault.args = {
104
114
  active: 1,
105
115
  is_retailer: 0,
106
116
  email_notify: 1,
107
- is_user_tech: "AS",
117
+ is_user_tech: null,
108
118
  membership: {
109
119
  id: 2,
110
120
  start_date: "2021-11-05T02:35:12.000Z",
@@ -116,6 +126,6 @@ RetailerProductEditionDefault.args = {
116
126
  products_limit: "3",
117
127
  type: "PyMES",
118
128
  },
119
- src: "https://content-management-profile.s3.amazonaws.com/id-65/65.png?1675063399869",
129
+ src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1669928511679",
120
130
  },
121
131
  };
@@ -175,7 +175,6 @@ export const RetailerProductEdition = ({
175
175
  const [percentages, setPercentages] = useState(
176
176
  new Array(product?.retailers?.length).fill({ percentage: 0 })
177
177
  );
178
- // const [percentages, setPercentages] = useState([{ retailers: {} }]);
179
178
  const [activePercentage, setActivePercentage] = useState(0);
180
179
  const [activeRetailer, setActiveRetailer] = useState({});
181
180
  const [services, setServices] = useState([]);
@@ -226,9 +225,12 @@ export const RetailerProductEdition = ({
226
225
  //Converts the data inside the datasheets object to array
227
226
  setServices(services);
228
227
  getServices();
228
+
229
+ // setActiveRetailer(product?.retailers[0]);
229
230
  setImages({ action: "init", init: services[2] });
230
231
  if (services[2]?.values?.length > 0) setActiveImage(0);
231
- getPercentage({ data: [product] }).then((res) => setPercentages(res[0]));
232
+
233
+ getPercentage({ data: [product] }).then((res) => setPercentages(res));
232
234
  setLoading(false);
233
235
  } catch (error) {
234
236
  console.log(error);
@@ -369,18 +371,12 @@ export const RetailerProductEdition = ({
369
371
  }, [userGroups]);
370
372
 
371
373
  useEffect(() => {
372
- const retailers = product?.retailersAvailable || product?.retailers;
373
- if (
374
- Object.keys(percentages[product.article.id_article] ?? {})?.length > 0
375
- ) {
376
- retailers?.forEach((retailer, index) => {
377
- retailer["percentage"] = Number(
378
- percentages[product.article.id_article][retailer.id]
379
- .percentageRequired
380
- );
381
- });
382
- }
383
- setActivePercentage(retailers[0]?.percentage);
374
+ product?.retailers?.forEach((retailer) => {
375
+ retailer["percentage"] = percentages?.filter(
376
+ (percent) => retailer?.id === percent?.id_retailer
377
+ )[0]?.percentage;
378
+ });
379
+ setActivePercentage(product?.retailers[0]?.percentage);
384
380
  }, [percentages]);
385
381
 
386
382
  useEffect(() => {
@@ -86,27 +86,32 @@ export const getImage = (imageGeneral, width = 250, height = 250) => {
86
86
  export const getPercentage = async (params = {}) => {
87
87
  const func = async () => {
88
88
  const dataToSend = [];
89
- const arrayRetailers = [];
90
89
  let retailers =
91
90
  params.data[0].retailers || params.data[0].retailersAvailable;
92
- params.data.forEach((product, i) => {
93
- dataToSend.push(
94
- product.article
95
- ? {
96
- id_article: product.article.id_article,
97
- id_category: product.article.id_category,
98
- version: product.version,
99
- }
100
- : {
101
- id_article: product.id_article,
102
- id_category: product.id_category,
103
- version: product.version,
104
- }
105
- );
91
+ params.data.forEach((product) => {
106
92
  retailers.forEach((retailer) => {
107
- arrayRetailers.push(retailer.id);
93
+ dataToSend.push(
94
+ product.article
95
+ ? {
96
+ id_article: product.article.id_article,
97
+ id_category: product.article.id_category,
98
+ id_retailer: retailer.id,
99
+ version: product.version,
100
+ upc: product.article.upc,
101
+ name: product.article.name,
102
+ retailerName: retailer.name,
103
+ }
104
+ : {
105
+ id_article: product.id_article,
106
+ id_category: product.id_category,
107
+ id_retailer: retailer.id,
108
+ version: product.version,
109
+ upc: product.upc,
110
+ name: product.name,
111
+ retailerName: retailer.name,
112
+ }
113
+ );
108
114
  });
109
- dataToSend[i].id_retailer_array = arrayRetailers;
110
115
  });
111
116
 
112
117
  return await axios
@@ -120,7 +125,7 @@ export const getPercentage = async (params = {}) => {
120
125
  }
121
126
  )
122
127
  .then((response) => {
123
- return [response.data];
128
+ return response.data;
124
129
  })
125
130
  .catch((err) => console.log(err, "Errror"));
126
131
  };
@@ -61,9 +61,3 @@
61
61
  src: url("../assets/fonts/roboto/Roboto-Regular.ttf");
62
62
  font-weight: 400;
63
63
  }
64
-
65
- .prueba {
66
- color: #9e3e26;
67
- color: #b42983;
68
- color: #e7e7e7;
69
- }