contentoh-components-library 21.5.7 → 21.5.9
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/organisms/InputGroup/index.js +1 -9
- package/dist/components/organisms/Table/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/saveData.js +19 -9
- package/dist/components/pages/MultipleEdition/styles.js +1 -1
- package/dist/components/pages/MultipleEdition/utils.js +153 -86
- package/package.json +1 -4
- package/src/components/atoms/Avatar/index.js +2 -8
- package/src/components/atoms/ButtonV2/ButtonV2.stories.js +0 -1
- package/src/components/atoms/ButtonV2/index.js +0 -1
- package/src/components/atoms/ButtonV2/styles.js +0 -16
- package/src/components/atoms/CheckBox/CheckBox.stories.js +0 -5
- package/src/components/atoms/CheckBox/index.js +1 -5
- package/src/components/atoms/CheckBox/styles.js +3 -9
- package/src/components/atoms/GeneralButton/styles.js +0 -46
- package/src/components/atoms/GeneralInput/index.js +0 -3
- package/src/components/atoms/GeneralInput/styles.js +1 -19
- package/src/components/atoms/InputFormatter/index.js +1 -2
- package/src/components/atoms/InputFormatter/styles.js +4 -9
- package/src/components/atoms/ProductImage/index.js +11 -24
- package/src/components/atoms/ProductImage/styles.js +0 -7
- package/src/components/atoms/SliderToolTip/styles.js +1 -1
- package/src/components/atoms/TabSection/index.js +1 -1
- package/src/components/atoms/TabSection/styles.js +3 -0
- package/src/components/molecules/BoxAttribute/index.js +25 -32
- package/src/components/molecules/BoxAttribute/styles.js +1 -1
- package/src/components/molecules/BoxButtons/index.js +22 -23
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/GalleryElement/index.js +1 -76
- package/src/components/molecules/GalleryHeader/index.js +0 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/ProductNameHeader/index.js +1 -19
- package/src/components/molecules/SignInLogin/index.js +11 -11
- package/src/components/molecules/StatusAsignationInfo/FinancedCompanies.js +63 -501
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -1
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +2 -1
- package/src/components/molecules/TagAndInput/index.js +6 -8
- package/src/components/organisms/Chat/Chat.stories.js +7 -27
- package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
- package/src/components/organisms/Chat/ContainerItems/styles.js +2 -14
- package/src/components/organisms/Chat/ContentChat/index.js +12 -88
- package/src/components/organisms/Chat/Footer/index.js +0 -11
- package/src/components/organisms/Chat/index.js +4 -46
- package/src/components/organisms/Chat/styles.js +0 -4
- package/src/components/organisms/DashboardMetric/index.js +3 -6
- package/src/components/organisms/FullProductNameHeader/index.js +1 -13
- package/src/components/organisms/GridProducts/GridProducts.stories.js +107 -682
- package/src/components/organisms/GridProducts/index.js +1 -1
- package/src/components/organisms/InputGroup/index.js +144 -303
- package/src/components/organisms/InputGroup/styles.js +0 -31
- package/src/components/organisms/Modal/Modal.stories.js +1 -2
- package/src/components/organisms/Modal/index.js +2 -9
- package/src/components/organisms/Modal/styles.js +1 -8
- package/src/components/organisms/OrderDetail/utils/Table/utils.js +16 -6
- package/src/components/pages/Dashboard/Dashboard.stories.js +38 -33
- package/src/components/pages/Dashboard/index.js +7 -36
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +60 -56
- package/src/components/pages/ProviderProductEdition/index.js +133 -148
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +0 -4
- package/src/components/pages/RetailerProductEdition/index.js +300 -293
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/global-files/data.js +10 -6
- package/src/global-files/variables.js +0 -6
- package/src/index.js +0 -12
- package/src/assets/images/Icons/addv2.svg +0 -8
- package/src/assets/images/Icons/beenhere.svg +0 -9
- package/src/assets/images/Icons/checkv2.svg +0 -8
- package/src/assets/images/Icons/close-magenta.svg +0 -9
- package/src/assets/images/Icons/close.svg +0 -8
- package/src/assets/images/Icons/closeCircle.svg +0 -8
- package/src/assets/images/Icons/delete-forever-red.svg +0 -9
- package/src/assets/images/Icons/delete-forever-white.svg +0 -10
- package/src/assets/images/Icons/edit.svg +0 -8
- package/src/assets/images/Icons/fullscreen.svg +0 -3
- package/src/assets/images/Icons/infoNR.svg +0 -8
- package/src/assets/images/Icons/options.svg +0 -3
- package/src/assets/images/Icons/save-white-gray.svg +0 -9
- package/src/assets/images/Icons/save-white.svg +0 -9
- package/src/assets/images/Icons/save.svg +0 -8
- package/src/assets/images/Icons/search.svg +0 -3
- package/src/assets/images/Icons/settings.svg +0 -8
- package/src/assets/images/Icons/trash.svg +0 -8
- package/src/assets/images/Icons/undo.svg +0 -8
- package/src/assets/images/Icons/upload-file-white.svg +0 -4
- package/src/assets/images/Icons/upload-file.svg +0 -10
- package/src/assets/images/Icons/upload_file.svg +0 -10
- package/src/assets/images/Icons/warningv2.svg +0 -3
- package/src/assets/images/checkBox/checkrosa.svg +0 -3
- package/src/assets/images/checkBox/checkverde.svg +0 -3
- package/src/assets/images/flagsv2/highPriority.svg +0 -3
- package/src/assets/images/flagsv2/lowPriority.svg +0 -3
- package/src/assets/images/flagsv2/mediumPriority.svg +0 -3
- package/src/assets/images/flagsv2/noPriority.svg +0 -3
- package/src/assets/images/generalButton/closeIconWhite.svg +0 -4
- package/src/assets/images/generalButton/closeIconv2.svg +0 -4
- package/src/assets/images/generalButton/saveIconpink.svg +0 -3
- package/src/components/atoms/CharsMissing/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/CharsMissing/index.js +0 -60
- package/src/components/atoms/CharsMissing/styles.js +0 -44
- package/src/components/atoms/CustomChip/CustomChip.stories.js +0 -16
- package/src/components/atoms/CustomChip/index.js +0 -34
- package/src/components/atoms/CustomChip/styles.js +0 -6
- package/src/components/atoms/FeatureTagv2/FeatureTagv2.stories.js +0 -16
- package/src/components/atoms/FeatureTagv2/index.js +0 -10
- package/src/components/atoms/FeatureTagv2/styles.js +0 -56
- package/src/components/atoms/GeneralInputv2/GeneralInputv2.stories.js +0 -33
- package/src/components/atoms/GeneralInputv2/index.js +0 -155
- package/src/components/atoms/GeneralInputv2/styles.js +0 -67
- package/src/components/atoms/InputFormatterv2/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/InputFormatterv2/index.js +0 -148
- package/src/components/atoms/InputFormatterv2/styles.js +0 -39
- package/src/components/atoms/InputImages/InputImages.stories.js +0 -19
- package/src/components/atoms/InputImages/index.js +0 -25
- package/src/components/atoms/InputImages/styles.js +0 -17
- package/src/components/atoms/Multiselect/Multiselect.stories.js +0 -364
- package/src/components/atoms/Multiselect/index.js +0 -351
- package/src/components/atoms/Multiselect/styles.js +0 -33
- package/src/components/atoms/NumberMandatory/NumberMandatory.stories.js +0 -19
- package/src/components/atoms/NumberMandatory/index.js +0 -16
- package/src/components/atoms/NumberMandatory/styles.js +0 -11
- package/src/components/atoms/ObservationFlag/ObservationFlag.stories.js +0 -20
- package/src/components/atoms/ObservationFlag/index.js +0 -167
- package/src/components/atoms/ObservationFlag/styles.js +0 -104
- package/src/components/atoms/PriorityFlagv2/PriorityFlagv2.stories.js +0 -20
- package/src/components/atoms/PriorityFlagv2/index.js +0 -20
- package/src/components/atoms/PriorityFlagv2/styles.js +0 -6
- package/src/components/atoms/ProductImagev2/ProductImagev2.stories.js +0 -28
- package/src/components/atoms/ProductImagev2/index.js +0 -16
- package/src/components/atoms/ProductImagev2/styles.js +0 -62
- package/src/components/atoms/Progress/Progress.stories.js +0 -25
- package/src/components/atoms/Progress/index.js +0 -74
- package/src/components/atoms/Progress/styles.js +0 -98
- package/src/components/atoms/ScreenHeaderv2/ScreenHeaderv2.stories.js +0 -53
- package/src/components/atoms/ScreenHeaderv2/index.js +0 -134
- package/src/components/atoms/ScreenHeaderv2/styles.js +0 -103
- package/src/components/atoms/Selectv2/VersionSelect.js +0 -27
- package/src/components/atoms/Selectv2/index.js +0 -35
- package/src/components/atoms/Selectv2/style.js +0 -93
- package/src/components/atoms/TabSectionv2/TabSection.stories.js +0 -25
- package/src/components/atoms/TabSectionv2/index.js +0 -9
- package/src/components/atoms/TabSectionv2/styles.js +0 -20
- package/src/components/atoms/TooltipLight/Tooltip.stories.js +0 -20
- package/src/components/atoms/TooltipLight/index.js +0 -46
- package/src/components/atoms/TooltipLight/styles.js +0 -65
- package/src/components/atoms/WordsMissing/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/WordsMissing/index.js +0 -60
- package/src/components/atoms/WordsMissing/styles.js +0 -10
- package/src/components/molecules/AddGroup/AddGroup.stories.js +0 -15
- package/src/components/molecules/AddGroup/index.js +0 -84
- package/src/components/molecules/AddGroup/styles.js +0 -141
- package/src/components/molecules/AsignationInfo/AsignationInfo.stories.js +0 -17
- package/src/components/molecules/AsignationInfo/index.js +0 -108
- package/src/components/molecules/AsignationInfo/styles.js +0 -86
- package/src/components/molecules/EditionActiveImagev2/EditionActiveImagev2.stories.js +0 -12
- package/src/components/molecules/EditionActiveImagev2/index.js +0 -15
- package/src/components/molecules/EditionActiveImagev2/styles.js +0 -7
- package/src/components/molecules/EditionTabs/EditionTabs.stories.js +0 -12
- package/src/components/molecules/EditionTabs/index.js +0 -33
- package/src/components/molecules/EditionTabs/styles.js +0 -24
- package/src/components/molecules/FeaturesBarv2/FeaturesBarv2.stories.js +0 -20
- package/src/components/molecules/FeaturesBarv2/index.js +0 -32
- package/src/components/molecules/FeaturesBarv2/styles.js +0 -17
- package/src/components/molecules/GalleryElementv2/GalleryElementv2.stories.js +0 -30
- package/src/components/molecules/GalleryElementv2/index.js +0 -142
- package/src/components/molecules/GalleryElementv2/styles.js +0 -119
- package/src/components/molecules/GalleryHeaderv2/GalleryHeaderv2.stories.js +0 -10
- package/src/components/molecules/GalleryHeaderv2/index.js +0 -25
- package/src/components/molecules/GalleryHeaderv2/styles.js +0 -47
- package/src/components/molecules/GroupSelect/GroupSelect.stories.js +0 -35
- package/src/components/molecules/GroupSelect/SelectItem.js +0 -105
- package/src/components/molecules/GroupSelect/index.js +0 -190
- package/src/components/molecules/GroupSelect/styles.js +0 -124
- package/src/components/molecules/HeaderTopv2/HeaderTopv2.stories.js +0 -10
- package/src/components/molecules/HeaderTopv2/index.js +0 -100
- package/src/components/molecules/HeaderTopv2/styles.js +0 -33
- package/src/components/molecules/ImageSelectorv2/ImageSelectorv2.stories.js +0 -46
- package/src/components/molecules/ImageSelectorv2/index.js +0 -22
- package/src/components/molecules/ImageSelectorv2/styles.js +0 -15
- package/src/components/molecules/Phase/Phase.stories.js +0 -107
- package/src/components/molecules/Phase/index.js +0 -391
- package/src/components/molecules/Phase/styles.js +0 -97
- package/src/components/molecules/ProductNameHeaderv2/ProductNameHeaderv2.stories.js +0 -37
- package/src/components/molecules/ProductNameHeaderv2/index.js +0 -12
- package/src/components/molecules/ProductNameHeaderv2/styles.js +0 -10
- package/src/components/molecules/ProductSkuStatus/ProductSkuStatus.stories.js +0 -37
- package/src/components/molecules/ProductSkuStatus/index.js +0 -26
- package/src/components/molecules/ProductSkuStatus/styles.js +0 -7
- package/src/components/molecules/RetailerSelectorv2/RetailerSelectorv2.stories.js +0 -35
- package/src/components/molecules/RetailerSelectorv2/index.js +0 -80
- package/src/components/molecules/RetailerSelectorv2/styles.js +0 -21
- package/src/components/molecules/ServiceDataValidator/ServiceDataValidator.stories.js +0 -90
- package/src/components/molecules/ServiceDataValidator/index.js +0 -49
- package/src/components/molecules/ServiceDataValidator/styles.js +0 -36
- package/src/components/molecules/StatusRetailer/StatusAsignationInfo.stories.js +0 -17
- package/src/components/molecules/StatusRetailer/index.js +0 -55
- package/src/components/molecules/StatusRetailer/styles.js +0 -85
- package/src/components/molecules/TabsMenuv2/TabsMenuv2.stories.js +0 -19
- package/src/components/molecules/TabsMenuv2/index.js +0 -112
- package/src/components/molecules/TabsMenuv2/styles.js +0 -19
- package/src/components/molecules/TagAndInputv2/TagAndInputv2.stories.js +0 -24
- package/src/components/molecules/TagAndInputv2/index.js +0 -86
- package/src/components/molecules/TagAndInputv2/styles.js +0 -35
- package/src/components/molecules/Validation/Validation.stories.js +0 -12
- package/src/components/molecules/Validation/index.js +0 -77
- package/src/components/molecules/Validation/styles.js +0 -19
- package/src/components/molecules/VersionItemv2/VersionItemv2.stories.js +0 -14
- package/src/components/molecules/VersionItemv2/index.js +0 -59
- package/src/components/molecules/VersionItemv2/styles.js +0 -47
- package/src/components/organisms/BarButtons/BarButtons.stories.js +0 -13
- package/src/components/organisms/BarButtons/index.js +0 -150
- package/src/components/organisms/BarButtons/styles.js +0 -54
- package/src/components/organisms/Chatv2/ChatLists/ChatLists.stories.js +0 -65
- package/src/components/organisms/Chatv2/ChatLists/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ChatLists/THD.png +0 -0
- package/src/components/organisms/Chatv2/ChatLists/index.js +0 -141
- package/src/components/organisms/Chatv2/ChatLists/styles.js +0 -162
- package/src/components/organisms/Chatv2/Chatv2.stories.js +0 -184
- package/src/components/organisms/Chatv2/ContainerItems/ContainerItems.stories.js +0 -142
- package/src/components/organisms/Chatv2/ContainerItems/index.js +0 -538
- package/src/components/organisms/Chatv2/ContainerItems/styles.js +0 -360
- package/src/components/organisms/Chatv2/ContentChat/ContentChat.stories.js +0 -102
- package/src/components/organisms/Chatv2/ContentChat/Rotoplas.jpeg +0 -0
- package/src/components/organisms/Chatv2/ContentChat/THD.png +0 -0
- package/src/components/organisms/Chatv2/ContentChat/index.js +0 -1016
- package/src/components/organisms/Chatv2/ContentChat/styles.js +0 -44
- package/src/components/organisms/Chatv2/Footer/Footer.stories.js +0 -22
- package/src/components/organisms/Chatv2/Footer/index.js +0 -668
- package/src/components/organisms/Chatv2/Footer/styles.js +0 -290
- package/src/components/organisms/Chatv2/Header/Header.stories.js +0 -66
- package/src/components/organisms/Chatv2/Header/index.js +0 -93
- package/src/components/organisms/Chatv2/Header/styles.js +0 -49
- package/src/components/organisms/Chatv2/index.js +0 -281
- package/src/components/organisms/Chatv2/styles.js +0 -85
- package/src/components/organisms/CompleteServices/CompleteServices.stories.js +0 -91
- package/src/components/organisms/CompleteServices/index.js +0 -82
- package/src/components/organisms/CompleteServices/styles.js +0 -35
- package/src/components/organisms/DragAndDropPhases/DragAndDropPhases.stories.js +0 -13
- package/src/components/organisms/DragAndDropPhases/index.js +0 -336
- package/src/components/organisms/DragAndDropPhases/styles.js +0 -107
- package/src/components/organisms/DragPrueba/DragPrueba.stories.js +0 -12
- package/src/components/organisms/DragPrueba/index.js +0 -57
- package/src/components/organisms/DragPrueba/styles.js +0 -8
- package/src/components/organisms/EditGroup/EditGroup.stories.js +0 -20
- package/src/components/organisms/EditGroup/index.js +0 -321
- package/src/components/organisms/EditGroup/styles.js +0 -207
- package/src/components/organisms/FullProductNamev2/FullProductNamev2.stories.js +0 -28
- package/src/components/organisms/FullProductNamev2/index.js +0 -101
- package/src/components/organisms/FullProductNamev2/styles.js +0 -49
- package/src/components/organisms/FullTabsMenuv2/FullTabsMenuv2.stories.js +0 -22
- package/src/components/organisms/FullTabsMenuv2/index.js +0 -142
- package/src/components/organisms/FullTabsMenuv2/styles.js +0 -47
- package/src/components/organisms/ImageDataTablev2/ImageDataTablev2.stories.js +0 -24
- package/src/components/organisms/ImageDataTablev2/index.js +0 -124
- package/src/components/organisms/ImageDataTablev2/styles.js +0 -18
- package/src/components/organisms/ImagePreviewerv2/ImagePreviewerv2.stories.js +0 -38
- package/src/components/organisms/ImagePreviewerv2/index.js +0 -22
- package/src/components/organisms/ImagePreviewerv2/styles.js +0 -7
- package/src/components/organisms/ImageUploader/ImageUploader.stories.js +0 -15
- package/src/components/organisms/ImageUploader/index.js +0 -62
- package/src/components/organisms/ImageUploader/styles.js +0 -29
- package/src/components/organisms/ImageVisor/ImageVisor.stories.js +0 -15
- package/src/components/organisms/ImageVisor/index.js +0 -143
- package/src/components/organisms/ImageVisor/styles.js +0 -106
- package/src/components/organisms/InputGroupv2/InputGroupv2.stories.js +0 -31
- package/src/components/organisms/InputGroupv2/index.js +0 -296
- package/src/components/organisms/InputGroupv2/styles.js +0 -90
- package/src/components/organisms/MandatoryBar/MandatoryBar.stories.js +0 -18
- package/src/components/organisms/MandatoryBar/index.js +0 -31
- package/src/components/organisms/MandatoryBar/styles.js +0 -12
- package/src/components/organisms/ProductImageModalv2/ProductImageModalv2.stories.js +0 -90
- package/src/components/organisms/ProductImageModalv2/index.js +0 -105
- package/src/components/organisms/ProductImageModalv2/styles.js +0 -71
- package/src/components/organisms/RenameImagesBar/RenameImagesBar.stories.js +0 -18
- package/src/components/organisms/RenameImagesBar/index.js +0 -30
- package/src/components/organisms/RenameImagesBar/styles.js +0 -12
- package/src/components/organisms/Table/Table.stories.js +0 -609
- package/src/components/organisms/Table/index.js +0 -84
- package/src/components/organisms/Table/styles.js +0 -114
- package/src/components/organisms/VersionSelectorv2/VersionSelectorv2.stories.js +0 -15
- package/src/components/organisms/VersionSelectorv2/index.js +0 -105
- package/src/components/organisms/VersionSelectorv2/styles.js +0 -45
- package/src/components/pages/MultipleEdition/MultipleEdition.stories.js +0 -17
- package/src/components/pages/MultipleEdition/components/ImageUploader.js +0 -62
- package/src/components/pages/MultipleEdition/components/ImageUploaderStyles.js +0 -29
- package/src/components/pages/MultipleEdition/components/ImageVisor.js +0 -143
- package/src/components/pages/MultipleEdition/components/styles.js +0 -106
- package/src/components/pages/MultipleEdition/index.js +0 -248
- package/src/components/pages/MultipleEdition/saveData.js +0 -92
- package/src/components/pages/MultipleEdition/styles.js +0 -201
- package/src/components/pages/MultipleEdition/utils.js +0 -1073
- package/src/components/pages/ProductEditionv2/ProductEditionv2.stories.js +0 -213
- package/src/components/pages/ProductEditionv2/index.js +0 -1758
- package/src/components/pages/ProductEditionv2/styles.js +0 -154
- package/src/components/pages/RetailerProductEdition/generateThumnail.js +0 -21
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import
|
|
3
|
-
import checkedGreen from "../../../assets/images/checkBox/checkverde.svg";
|
|
4
|
-
import checkedPink from "../../../assets/images/checkBox/checkrosa.svg";
|
|
2
|
+
import checked from "../../../assets/images/checkBox/checked.svg";
|
|
5
3
|
import unchecked from "../../../assets/images/checkBox/unchecked.svg";
|
|
6
4
|
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
7
5
|
|
|
@@ -11,10 +9,8 @@ export const Container = styled.div`
|
|
|
11
9
|
&:checked + label {
|
|
12
10
|
&:before {
|
|
13
11
|
background-color: ${GlobalColors.white};
|
|
14
|
-
background-image: ${
|
|
15
|
-
|
|
16
|
-
? `url(${checkedGreen})` : `url(${checkedPink})` )}
|
|
17
|
-
}
|
|
12
|
+
background-image: url(${checked});
|
|
13
|
+
}
|
|
18
14
|
}
|
|
19
15
|
}
|
|
20
16
|
|
|
@@ -50,8 +46,6 @@ export const Container = styled.div`
|
|
|
50
46
|
top: 50%;
|
|
51
47
|
transform: translateY(-50%);
|
|
52
48
|
background-image: url(${unchecked});
|
|
53
|
-
z-index: 5;
|
|
54
|
-
cursor: pointer;
|
|
55
49
|
}
|
|
56
50
|
}
|
|
57
51
|
`;
|
|
@@ -5,8 +5,6 @@ import rejectIcon from "../../../assets/images/generalButton/rejectIcon.svg";
|
|
|
5
5
|
import nullIcon from "../../../assets/images/generalButton/nullIcon.svg";
|
|
6
6
|
import openModalIcon from "../../../assets/images/generalButton/openModal.svg";
|
|
7
7
|
import closeIcon from "../../../assets/images/generalButton/closeIcon.svg";
|
|
8
|
-
import closeIconv2 from "../../../assets/images/generalButton/closeIconv2.svg";
|
|
9
|
-
import closeIconWhite from "../../../assets/images/generalButton/closeIconWhite.svg";
|
|
10
8
|
import rowsLayout from "../../../assets/images/generalButton/rowLayout.svg";
|
|
11
9
|
import gridLayout from "../../../assets/images/generalButton/gridLayout.svg";
|
|
12
10
|
import arrowIcon from "../../../assets/images/arrow/arrowIcon.svg";
|
|
@@ -146,24 +144,6 @@ export const Container = styled.button`
|
|
|
146
144
|
background-image: url(${closeIcon});
|
|
147
145
|
}
|
|
148
146
|
|
|
149
|
-
&.close-buttonv2 {
|
|
150
|
-
width: 52px;
|
|
151
|
-
height: 52px;
|
|
152
|
-
background-color: transparent;
|
|
153
|
-
background-repeat: no-repeat;
|
|
154
|
-
background-position: center;
|
|
155
|
-
background-image: url(${closeIconv2});
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&.close-button-white {
|
|
159
|
-
width: 52px;
|
|
160
|
-
height: 52px;
|
|
161
|
-
background-color: transparent;
|
|
162
|
-
background-repeat: no-repeat;
|
|
163
|
-
background-position: center;
|
|
164
|
-
background-image: url(${closeIconWhite});
|
|
165
|
-
}
|
|
166
|
-
|
|
167
147
|
&.open-modal-button {
|
|
168
148
|
background-color: transparent;
|
|
169
149
|
border: none;
|
|
@@ -206,30 +186,4 @@ export const Container = styled.button`
|
|
|
206
186
|
opacity: 1;
|
|
207
187
|
}
|
|
208
188
|
}
|
|
209
|
-
&.general-button-rec {
|
|
210
|
-
background:#85BC5B;
|
|
211
|
-
color: ${GlobalColors.white};
|
|
212
|
-
padding: 4px 5px;
|
|
213
|
-
border-radius: 3px;
|
|
214
|
-
font-size: 10px;
|
|
215
|
-
height: 20px;
|
|
216
|
-
line-height: 12px;
|
|
217
|
-
text-align: center;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
&.general-button-sol {
|
|
221
|
-
background-color: #e33aa9;
|
|
222
|
-
border: none;
|
|
223
|
-
border-radius: 50px;
|
|
224
|
-
color: ${GlobalColors.white};
|
|
225
|
-
height: 34px;
|
|
226
|
-
font-family: Avenir Next;
|
|
227
|
-
font-style: normal;
|
|
228
|
-
font-weight: normal;
|
|
229
|
-
font-size: 12px;
|
|
230
|
-
line-height: 14px;
|
|
231
|
-
padding: 10px 15px;
|
|
232
|
-
cursor: pointer;
|
|
233
|
-
}
|
|
234
189
|
`;
|
|
235
|
-
|
|
@@ -107,7 +107,6 @@ export const GeneralInput = ({
|
|
|
107
107
|
id={`dropdown${inputId}`}
|
|
108
108
|
onChange={(e) => onHandleChange(e)}
|
|
109
109
|
defaultValue={textValue.value}
|
|
110
|
-
disabled={disabled}
|
|
111
110
|
>
|
|
112
111
|
<option value="">{description}</option>
|
|
113
112
|
{JSON.parse(optionList || "[]").map((element, index) => (
|
|
@@ -121,7 +120,6 @@ export const GeneralInput = ({
|
|
|
121
120
|
id={inputId}
|
|
122
121
|
onChange={(e) => onHandleChange(e)}
|
|
123
122
|
defaultChecked={textValue.value === "true" ? true : false}
|
|
124
|
-
disabled={disabled}
|
|
125
123
|
/>
|
|
126
124
|
) : inputType !== "textarea" ? (
|
|
127
125
|
<input
|
|
@@ -150,7 +148,6 @@ export const GeneralInput = ({
|
|
|
150
148
|
setUpdatedDescriptions={setUpdatedDescriptions}
|
|
151
149
|
maxChar={maxChar}
|
|
152
150
|
isRequired={isRequired}
|
|
153
|
-
disabled={disabled}
|
|
154
151
|
/>
|
|
155
152
|
)}
|
|
156
153
|
<p>{description}</p>
|
|
@@ -25,7 +25,7 @@ export const Container = styled.div`
|
|
|
25
25
|
line-height: 15px;
|
|
26
26
|
padding: 10px;
|
|
27
27
|
outline: none;
|
|
28
|
-
border-radius:
|
|
28
|
+
border-radius: 2px;
|
|
29
29
|
resize: none;
|
|
30
30
|
|
|
31
31
|
&:focus {
|
|
@@ -65,22 +65,4 @@ export const Container = styled.div`
|
|
|
65
65
|
background-color: #ededfc;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
.btnReviewState {
|
|
70
|
-
display: "flex";
|
|
71
|
-
flex-direction: "column";
|
|
72
|
-
border: 1px solid lightgray;
|
|
73
|
-
border-radius: 3px;
|
|
74
|
-
z-index: 1000;
|
|
75
|
-
/* position: absolute; */
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.btnReviewState button {
|
|
79
|
-
border: none;
|
|
80
|
-
background: white;
|
|
81
|
-
border-radius: 3px;
|
|
82
|
-
}
|
|
83
|
-
.btnReviewState button:hover {
|
|
84
|
-
background: lightgray;
|
|
85
|
-
}
|
|
86
68
|
`;
|
|
@@ -11,7 +11,6 @@ export const InputFormatter = ({
|
|
|
11
11
|
setUpdatedDescriptions,
|
|
12
12
|
isRequired,
|
|
13
13
|
maxChar,
|
|
14
|
-
disabled,
|
|
15
14
|
}) => {
|
|
16
15
|
const [inputValue, setInputValue] = useState(mainValue);
|
|
17
16
|
const [selection, setSelection] = useState(false);
|
|
@@ -118,7 +117,7 @@ export const InputFormatter = ({
|
|
|
118
117
|
id={inputId + ""}
|
|
119
118
|
ref={(el) => setQuill(el)}
|
|
120
119
|
defaultValue={getValue(inputValue)}
|
|
121
|
-
|
|
120
|
+
//disabled={!props.enableInputs}
|
|
122
121
|
modules={{ toolbar: ["bold"] }}
|
|
123
122
|
onKeyPress={(e) => {
|
|
124
123
|
if (charsCounter >= maxLength && e.key !== "Backspace") {
|
|
@@ -6,15 +6,15 @@ export const Container = styled.div`
|
|
|
6
6
|
background-color: ${GlobalColors.white};
|
|
7
7
|
border: 1px solid
|
|
8
8
|
${({ focus, isRequired }) =>
|
|
9
|
-
focus ? GlobalColors.magenta_s2 : isRequired ? "red" : GlobalColors.
|
|
9
|
+
focus ? GlobalColors.magenta_s2 : isRequired ? "red" : GlobalColors.s3};
|
|
10
10
|
position: relative;
|
|
11
|
-
border-radius:
|
|
11
|
+
border-radius: 2px;
|
|
12
12
|
|
|
13
13
|
.ql-toolbar {
|
|
14
14
|
background-color: ${GlobalColors.s2};
|
|
15
15
|
position: absolute;
|
|
16
16
|
z-index: 10;
|
|
17
|
-
border: 1px solid ${GlobalColors.
|
|
17
|
+
border: 1px solid ${GlobalColors.s3};
|
|
18
18
|
width: 45px;
|
|
19
19
|
height: 45px;
|
|
20
20
|
border-radius: 4px;
|
|
@@ -30,10 +30,6 @@ export const Container = styled.div`
|
|
|
30
30
|
strong {
|
|
31
31
|
font-family: ${FontFamily.Raleway_900};
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
.ql-editor{
|
|
35
|
-
padding: 8px 10px;
|
|
36
|
-
}
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
35
|
.description-limit {
|
|
@@ -41,6 +37,5 @@ export const Container = styled.div`
|
|
|
41
37
|
font-family: ${FontFamily.AvenirNext};
|
|
42
38
|
color: ${GlobalColors.deep_gray};
|
|
43
39
|
text-align: right;
|
|
44
|
-
margin-top: 5px;
|
|
45
40
|
}
|
|
46
|
-
`;
|
|
41
|
+
`;
|
|
@@ -2,28 +2,15 @@ import { Container } from "./styles";
|
|
|
2
2
|
import ReactImageFallback from "react-image-fallback";
|
|
3
3
|
import defaultProductImage from "../../../assets/images/defaultImages/defaultProductImage.png";
|
|
4
4
|
|
|
5
|
-
export const ProductImage = ({ img, imageType, altText, onClick}) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
else{
|
|
18
|
-
return (
|
|
19
|
-
<Container className={imageType}>
|
|
20
|
-
<ReactImageFallback
|
|
21
|
-
src={img}
|
|
22
|
-
fallbackImage={defaultProductImage}
|
|
23
|
-
alt={altText}
|
|
24
|
-
onClick={onClick}
|
|
25
|
-
/>
|
|
26
|
-
</Container>
|
|
27
|
-
);
|
|
28
|
-
}
|
|
5
|
+
export const ProductImage = ({ img, imageType, altText, onClick }) => {
|
|
6
|
+
return (
|
|
7
|
+
<Container className={imageType}>
|
|
8
|
+
<ReactImageFallback
|
|
9
|
+
src={img}
|
|
10
|
+
fallbackImage={defaultProductImage}
|
|
11
|
+
alt={altText}
|
|
12
|
+
onClick={onClick}
|
|
13
|
+
/>
|
|
14
|
+
</Container>
|
|
15
|
+
);
|
|
29
16
|
};
|
|
@@ -27,9 +27,6 @@ export const Container = styled.div`
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&.catalogue-image-big-size {
|
|
30
|
-
display: flex;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
align-items: center;
|
|
33
30
|
img {
|
|
34
31
|
width: 179px;
|
|
35
32
|
height: 179px;
|
|
@@ -56,9 +53,6 @@ export const Container = styled.div`
|
|
|
56
53
|
&.expanded-modal-image {
|
|
57
54
|
width: 710px;
|
|
58
55
|
height: 710px;
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
align-items: center;
|
|
62
56
|
|
|
63
57
|
img {
|
|
64
58
|
width: 710px;
|
|
@@ -66,4 +60,3 @@ export const Container = styled.div`
|
|
|
66
60
|
}
|
|
67
61
|
}
|
|
68
62
|
`;
|
|
69
|
-
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
3
|
+
|
|
3
4
|
export const Container = styled.div`
|
|
4
5
|
font-family: ${FontFamily.Raleway_500};
|
|
5
6
|
color: ${GlobalColors.s5};
|
|
@@ -10,10 +11,12 @@ export const Container = styled.div`
|
|
|
10
11
|
padding-bottom: 5px;
|
|
11
12
|
transition: 0.1s all;
|
|
12
13
|
cursor: pointer;
|
|
14
|
+
|
|
13
15
|
&.active {
|
|
14
16
|
font-size: 18px;
|
|
15
17
|
border-bottom: 2px solid ${GlobalColors.magenta_s2};
|
|
16
18
|
}
|
|
19
|
+
|
|
17
20
|
& + * {
|
|
18
21
|
margin-left: 10px;
|
|
19
22
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Container } from "./styles";
|
|
2
2
|
import IconInfo from "../../../assets/images/Icons/info.svg";
|
|
3
3
|
import TextField from "@mui/material/TextField";
|
|
4
|
-
import Tooltip, { tooltipClasses } from
|
|
5
|
-
import { styled } from
|
|
4
|
+
import Tooltip, { tooltipClasses } from '@mui/material/Tooltip';
|
|
5
|
+
import { styled } from '@mui/material/styles';
|
|
6
6
|
import { FontFamily, GlobalColors } from "../../../global-files/variables";
|
|
7
7
|
|
|
8
8
|
export const BoxAttribute = (props) => {
|
|
@@ -29,7 +29,7 @@ export const BoxAttribute = (props) => {
|
|
|
29
29
|
))(({ theme }) => ({
|
|
30
30
|
[`& .${tooltipClasses.tooltip}`]: {
|
|
31
31
|
backgroundColor: GlobalColors.white,
|
|
32
|
-
color:
|
|
32
|
+
color: 'rgba(0, 0, 0, 0.87)',
|
|
33
33
|
boxShadow: theme.shadows[1],
|
|
34
34
|
fontSize: 11,
|
|
35
35
|
fontFamily: `${FontFamily.Roboto}, sans-serif`,
|
|
@@ -37,41 +37,34 @@ export const BoxAttribute = (props) => {
|
|
|
37
37
|
}));
|
|
38
38
|
return (
|
|
39
39
|
<>
|
|
40
|
-
|
|
40
|
+
<Container
|
|
41
41
|
id={id}
|
|
42
42
|
key={key}
|
|
43
43
|
className={className}
|
|
44
44
|
borderType={borderType}
|
|
45
45
|
>
|
|
46
|
-
<LightTooltip
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<img className="icon" src={IconInfo} alt="iconInfo" />
|
|
55
|
-
</Container>
|
|
46
|
+
<LightTooltip title={
|
|
47
|
+
<div className="container-tooltip">
|
|
48
|
+
<p className="container-tooltip">{description}</p>
|
|
49
|
+
</div>
|
|
50
|
+
}>
|
|
51
|
+
<Container className="">
|
|
52
|
+
<img className="icon" src={IconInfo} alt="iconInfo" />
|
|
53
|
+
</Container>
|
|
56
54
|
</LightTooltip>
|
|
57
|
-
<span>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
variant="outlined"
|
|
71
|
-
size="small"
|
|
72
|
-
type="number"
|
|
73
|
-
required={required}
|
|
74
|
-
/>
|
|
55
|
+
<span>{text}<span className={required ? 'required-text' : ''}>{required ? '*' : ''}</span></span>
|
|
56
|
+
<TextField
|
|
57
|
+
hiddenLabel
|
|
58
|
+
key={props.id}
|
|
59
|
+
name={props.id}
|
|
60
|
+
value={atributos[props.id]}
|
|
61
|
+
onChange={handleInputChange}
|
|
62
|
+
className="caja-borde"
|
|
63
|
+
variant="outlined"
|
|
64
|
+
size="small"
|
|
65
|
+
type="number"
|
|
66
|
+
required={required}
|
|
67
|
+
/>
|
|
75
68
|
</Container>
|
|
76
69
|
</>
|
|
77
70
|
);
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { Container, ContainerIcon } from "./styles";
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
3
|
|
|
4
|
-
export const BoxButtons = ({
|
|
5
|
-
|
|
6
|
-
onAdd,
|
|
7
|
-
onDelete,
|
|
8
|
-
isTheFirstBox,
|
|
9
|
-
index,
|
|
10
|
-
}) => {
|
|
4
|
+
export const BoxButtons = ({ showAdd, onAdd, onDelete, isTheFirstBox, index }) => {
|
|
5
|
+
console.log("index",index)
|
|
11
6
|
return (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
<Container index={index}>
|
|
8
|
+
{!isTheFirstBox && (
|
|
9
|
+
<Button
|
|
10
|
+
variant="outlined"
|
|
11
|
+
className="button-circle"
|
|
12
|
+
onClick={onDelete}
|
|
13
|
+
>
|
|
14
|
+
<ContainerIcon>
|
|
15
|
+
<span className="iconos-out">delete_forever</span>
|
|
16
|
+
</ContainerIcon>
|
|
17
|
+
</Button>
|
|
18
|
+
)}
|
|
19
|
+
{showAdd && (
|
|
20
|
+
<Button onClick={onAdd} variant="outlined" className="button-circle">
|
|
21
|
+
<ContainerIcon>
|
|
22
|
+
<span className="iconos-out iconos-grises">add</span>
|
|
23
|
+
</ContainerIcon>
|
|
24
|
+
</Button>
|
|
25
|
+
)}
|
|
26
|
+
</Container>
|
|
28
27
|
);
|
|
29
28
|
};
|
|
@@ -27,7 +27,7 @@ export const CarouselImagesLogin = ({
|
|
|
27
27
|
img2.src = images[i];
|
|
28
28
|
const circulo_actual = Array.from(circulos).find((el) => el.id === i);
|
|
29
29
|
Array.from(circulos).forEach((cir) => cir.classList.remove("resaltado"));
|
|
30
|
-
circulo_actual
|
|
30
|
+
circulo_actual.classList.add("resaltado");
|
|
31
31
|
img1.classList.add("right");
|
|
32
32
|
img2.classList.add("active");
|
|
33
33
|
i++;
|
|
@@ -5,9 +5,6 @@ import { Button } from "../../atoms/GeneralButton";
|
|
|
5
5
|
import { ValidationPanel } from "../../atoms/ValidationPanel";
|
|
6
6
|
import { useState, useEffect } from "react";
|
|
7
7
|
import Select from "../../atoms/Select";
|
|
8
|
-
import rejectIcon from "../../../assets/images/generalButton/rejectIcon.svg";
|
|
9
|
-
import acceptIcon from "../../../assets/images/generalButton/acceptIcon.svg";
|
|
10
|
-
import { Tooltip } from "../../atoms/Tooltip";
|
|
11
8
|
|
|
12
9
|
export const GalleryElement = ({
|
|
13
10
|
image,
|
|
@@ -24,25 +21,8 @@ export const GalleryElement = ({
|
|
|
24
21
|
setCheckAll,
|
|
25
22
|
auditImages,
|
|
26
23
|
compare,
|
|
27
|
-
updateApprovedInputsImages,
|
|
28
24
|
}) => {
|
|
29
25
|
const [showValidationPanel, setShowValidationPanel] = useState(false);
|
|
30
|
-
const [showDivStates, setShowDivStates] = useState({});
|
|
31
|
-
const [imageStates, setImageStates] = useState({});
|
|
32
|
-
|
|
33
|
-
const handleImgClick = (inputId) => {
|
|
34
|
-
setShowDivStates((prevStates) => ({
|
|
35
|
-
...prevStates,
|
|
36
|
-
[inputId]: !prevStates[inputId],
|
|
37
|
-
}));
|
|
38
|
-
};
|
|
39
|
-
const changeImageBtn = (inputId, action) => {
|
|
40
|
-
setImageStates((prevStates) => ({
|
|
41
|
-
...prevStates,
|
|
42
|
-
[inputId]: action === "validate",
|
|
43
|
-
}));
|
|
44
|
-
updateApprovedInputsImages(inputId);
|
|
45
|
-
};
|
|
46
26
|
|
|
47
27
|
const closeValidationPanel = (e) => {
|
|
48
28
|
if (
|
|
@@ -77,7 +57,7 @@ export const GalleryElement = ({
|
|
|
77
57
|
const isEquals = (value, auditValue) => {
|
|
78
58
|
return value === auditValue;
|
|
79
59
|
};
|
|
80
|
-
|
|
60
|
+
|
|
81
61
|
return (
|
|
82
62
|
<Container
|
|
83
63
|
className={`${gridLayout ? "grid-gallery" : "row-gallery"} ${
|
|
@@ -161,61 +141,6 @@ export const GalleryElement = ({
|
|
|
161
141
|
});
|
|
162
142
|
}}
|
|
163
143
|
/>
|
|
164
|
-
|
|
165
|
-
{image?.isApproved === false && (
|
|
166
|
-
<div
|
|
167
|
-
style={{
|
|
168
|
-
display: "flex",
|
|
169
|
-
"justify-content": "center",
|
|
170
|
-
"align-items": "center",
|
|
171
|
-
}}
|
|
172
|
-
>
|
|
173
|
-
<Tooltip
|
|
174
|
-
componentTooltip={
|
|
175
|
-
<>
|
|
176
|
-
<p>
|
|
177
|
-
<b>Comentarios:</b>
|
|
178
|
-
</p>
|
|
179
|
-
<p>{image.comment}</p>
|
|
180
|
-
</>
|
|
181
|
-
}
|
|
182
|
-
children={
|
|
183
|
-
!image.isApproved && (
|
|
184
|
-
<img
|
|
185
|
-
src={
|
|
186
|
-
imageStates[image.image_id]
|
|
187
|
-
? acceptIcon
|
|
188
|
-
: rejectIcon
|
|
189
|
-
}
|
|
190
|
-
alt={"botón rechazar"}
|
|
191
|
-
style={{ cursor: "pointer" }}
|
|
192
|
-
onClick={() => handleImgClick(image.image_id)}
|
|
193
|
-
/>
|
|
194
|
-
)
|
|
195
|
-
}
|
|
196
|
-
classNameTooltip={"container-tooltip"}
|
|
197
|
-
/>
|
|
198
|
-
{showDivStates[image.image_id] && (
|
|
199
|
-
<div className="btnReviewState">
|
|
200
|
-
<div>
|
|
201
|
-
<button
|
|
202
|
-
id="aceptbtn"
|
|
203
|
-
onClick={() =>
|
|
204
|
-
changeImageBtn(image.image_id, "validate")
|
|
205
|
-
}
|
|
206
|
-
>
|
|
207
|
-
<img
|
|
208
|
-
src={acceptIcon}
|
|
209
|
-
alt="acept button"
|
|
210
|
-
style={{ cursor: "pointer" }}
|
|
211
|
-
/>
|
|
212
|
-
Validar
|
|
213
|
-
</button>
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
216
|
-
)}
|
|
217
|
-
</div>
|
|
218
|
-
)}
|
|
219
144
|
</>
|
|
220
145
|
)}
|
|
221
146
|
</div>
|
|
@@ -4,13 +4,10 @@ import { Button } from "../../atoms/GeneralButton/index";
|
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
5
5
|
import { Chat } from "../../organisms/Chat";
|
|
6
6
|
import auditIcon from "../../../../src/assets/images/generalButton/Icono AB.svg";
|
|
7
|
-
import { useState } from "react";
|
|
8
|
-
import { render } from "@testing-library/react";
|
|
9
7
|
|
|
10
8
|
export const HeaderTop = ({
|
|
11
9
|
setHeaderTop,
|
|
12
10
|
withChat,
|
|
13
|
-
chatType,
|
|
14
11
|
productSelected,
|
|
15
12
|
token,
|
|
16
13
|
auditableVersion,
|
|
@@ -19,51 +16,16 @@ export const HeaderTop = ({
|
|
|
19
16
|
activeRetailer,
|
|
20
17
|
}) => {
|
|
21
18
|
const headerTop = useRef();
|
|
22
|
-
const [chat, setChat] = useState(null);
|
|
23
|
-
const [chatData, setChatData] = useState(null);
|
|
24
|
-
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
if (activeRetailer.id && productSelected && token.length) {
|
|
27
|
-
setChatData({
|
|
28
|
-
id: productSelected?.article?.id_article || productSelected?.id_article,
|
|
29
|
-
version: productSelected?.version,
|
|
30
|
-
retailerId: activeRetailer?.id,
|
|
31
|
-
status: productSelected?.status,
|
|
32
|
-
userToken: token,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}, [activeRetailer, productSelected, token]);
|
|
36
|
-
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
if (chatType) renderChat(chatType);
|
|
39
|
-
}, [chatData, chatType]);
|
|
40
19
|
|
|
41
20
|
useEffect(() => {
|
|
42
21
|
setHeaderTop && setHeaderTop(headerTop.current.clientHeight);
|
|
43
22
|
}, []);
|
|
44
23
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<Chat
|
|
51
|
-
chatType="product_status"
|
|
52
|
-
chatContainerType="popUp"
|
|
53
|
-
chatData={{
|
|
54
|
-
id: chatData?.id,
|
|
55
|
-
version: chatData?.version,
|
|
56
|
-
retailerId: chatData?.retailerId,
|
|
57
|
-
status: chatData?.status,
|
|
58
|
-
userToken: chatData?.userToken,
|
|
59
|
-
}}
|
|
60
|
-
size={18}
|
|
61
|
-
activeRetailer={activeRetailer}
|
|
62
|
-
/>
|
|
63
|
-
);
|
|
64
|
-
break;
|
|
65
|
-
default:
|
|
66
|
-
setChat(
|
|
24
|
+
return (
|
|
25
|
+
<Container ref={headerTop}>
|
|
26
|
+
<ScreenHeader text="Edición de producto" />
|
|
27
|
+
<div className="buttons-container">
|
|
28
|
+
{withChat && (
|
|
67
29
|
<Chat
|
|
68
30
|
chatType="merchant_product"
|
|
69
31
|
chatContainerType="popUp"
|
|
@@ -75,16 +37,8 @@ export const HeaderTop = ({
|
|
|
75
37
|
size={18}
|
|
76
38
|
activeRetailer={activeRetailer}
|
|
77
39
|
/>
|
|
78
|
-
)
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
};
|
|
40
|
+
)}
|
|
82
41
|
|
|
83
|
-
return (
|
|
84
|
-
<Container ref={headerTop}>
|
|
85
|
-
<ScreenHeader text="Edición de producto" />
|
|
86
|
-
<div className="buttons-container">
|
|
87
|
-
{withChat && chat}
|
|
88
42
|
{isAuditor && auditableVersion && (
|
|
89
43
|
<Button
|
|
90
44
|
buttonType="general-white-button circular-button"
|