contentoh-components-library 21.5.1 → 21.5.3
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/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/InputGroup/index.js +144 -292
- 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
|
@@ -3,7 +3,6 @@ import { ScreenHeader } from "../../atoms/ScreenHeader/index";
|
|
|
3
3
|
import { Status } from "../../atoms/Status/index";
|
|
4
4
|
import { ProgressBar } from "../../atoms/ProgressBar/index";
|
|
5
5
|
import { PriorityFlag } from "../../atoms/PriorityFlag/index";
|
|
6
|
-
import { ObservationFlag } from "../../atoms/ObservationFlag/index";
|
|
7
6
|
|
|
8
7
|
export const ProductNameHeader = ({
|
|
9
8
|
productName,
|
|
@@ -11,15 +10,7 @@ export const ProductNameHeader = ({
|
|
|
11
10
|
priority,
|
|
12
11
|
date,
|
|
13
12
|
percentRequired,
|
|
14
|
-
productObservation,
|
|
15
|
-
dataProduct,
|
|
16
|
-
isObservationVisible,
|
|
17
|
-
toggleObservation,
|
|
18
|
-
// handleClickOutside,
|
|
19
|
-
hideObservation
|
|
20
13
|
}) => {
|
|
21
|
-
const typeFlag =
|
|
22
|
-
productObservation !== null && productObservation !== "" ? "high" : "low";
|
|
23
14
|
return (
|
|
24
15
|
<Container>
|
|
25
16
|
<ScreenHeader headerType={"product-name-header"} text={productName} />
|
|
@@ -29,16 +20,7 @@ export const ProductNameHeader = ({
|
|
|
29
20
|
progressBarType={statusType}
|
|
30
21
|
percentRequired={percentRequired}
|
|
31
22
|
/>
|
|
32
|
-
|
|
33
|
-
<ObservationFlag
|
|
34
|
-
observation={typeFlag}
|
|
35
|
-
contentObservation={productObservation}
|
|
36
|
-
dataProduct={dataProduct}
|
|
37
|
-
isObservationVisible ={isObservationVisible}
|
|
38
|
-
toggleObservation = {toggleObservation}
|
|
39
|
-
// handleClickOutside = {handleClickOutside}
|
|
40
|
-
hideObservation={hideObservation}
|
|
41
|
-
/>
|
|
23
|
+
<PriorityFlag priority={priority} />
|
|
42
24
|
<ScreenHeader headerType={"date-header"} text={date} />
|
|
43
25
|
</Container>
|
|
44
26
|
);
|
|
@@ -54,25 +54,25 @@ export const SignInLogin = (props) => {
|
|
|
54
54
|
} else {
|
|
55
55
|
const userGroup =
|
|
56
56
|
session.signInUserSession.accessToken.payload["cognito:groups"];
|
|
57
|
-
|
|
57
|
+
const response = await axios.get(
|
|
58
|
+
process.env.REACT_APP_USER_ENDPOINT,
|
|
59
|
+
{
|
|
60
|
+
headers: {
|
|
61
|
+
Authorization: session.signInUserSession.idToken.jwtToken,
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
if (userGroup[0] === props.users) {
|
|
58
66
|
sessionStorage.setItem("auth", true);
|
|
59
67
|
sessionStorage.setItem(
|
|
60
68
|
"jwt",
|
|
61
69
|
session.signInUserSession.idToken.jwtToken
|
|
62
70
|
);
|
|
63
|
-
const response = await axios.get(
|
|
64
|
-
process.env.REACT_APP_USER_ENDPOINT,
|
|
65
|
-
{
|
|
66
|
-
headers: {
|
|
67
|
-
Authorization: session.signInUserSession.idToken.jwtToken,
|
|
68
|
-
},
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
71
|
const user = JSON.parse(response.data.body).data[0];
|
|
72
72
|
const company = JSON.parse(response.data.body).data[1];
|
|
73
73
|
caches.keys().then((names) => {
|
|
74
74
|
names.forEach((name) => {
|
|
75
|
-
caches
|
|
75
|
+
caches.delete(name);
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
user.src = `https://${
|
|
@@ -89,7 +89,7 @@ export const SignInLogin = (props) => {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
} catch (error) {
|
|
92
|
-
console.log(error);
|
|
92
|
+
console.log(error.code);
|
|
93
93
|
setLoading(false);
|
|
94
94
|
if (error.code === "NotAuthorizedException") {
|
|
95
95
|
setSignInError("NotAuthorizedException");
|
|
@@ -1,502 +1,64 @@
|
|
|
1
1
|
export const FinancedCompanies = [
|
|
2
|
-
300,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
331,
|
|
66
|
-
332,
|
|
67
|
-
332,
|
|
68
|
-
333,
|
|
69
|
-
333,
|
|
70
|
-
334,
|
|
71
|
-
334,
|
|
72
|
-
335,
|
|
73
|
-
335,
|
|
74
|
-
336,
|
|
75
|
-
336,
|
|
76
|
-
337,
|
|
77
|
-
337,
|
|
78
|
-
338,
|
|
79
|
-
338,
|
|
80
|
-
339,
|
|
81
|
-
339,
|
|
82
|
-
340,
|
|
83
|
-
340,
|
|
84
|
-
341,
|
|
85
|
-
341,
|
|
86
|
-
342,
|
|
87
|
-
342,
|
|
88
|
-
343,
|
|
89
|
-
343,
|
|
90
|
-
344,
|
|
91
|
-
344,
|
|
92
|
-
345,
|
|
93
|
-
345,
|
|
94
|
-
346,
|
|
95
|
-
346,
|
|
96
|
-
347,
|
|
97
|
-
347,
|
|
98
|
-
348,
|
|
99
|
-
348,
|
|
100
|
-
349,
|
|
101
|
-
349,
|
|
102
|
-
350,
|
|
103
|
-
350,
|
|
104
|
-
351,
|
|
105
|
-
351,
|
|
106
|
-
352,
|
|
107
|
-
352,
|
|
108
|
-
353,
|
|
109
|
-
353,
|
|
110
|
-
354,
|
|
111
|
-
354,
|
|
112
|
-
355,
|
|
113
|
-
355,
|
|
114
|
-
356,
|
|
115
|
-
356,
|
|
116
|
-
357,
|
|
117
|
-
357,
|
|
118
|
-
358,
|
|
119
|
-
358,
|
|
120
|
-
359,
|
|
121
|
-
359,
|
|
122
|
-
360,
|
|
123
|
-
360,
|
|
124
|
-
361,
|
|
125
|
-
361,
|
|
126
|
-
362,
|
|
127
|
-
362,
|
|
128
|
-
363,
|
|
129
|
-
363,
|
|
130
|
-
364,
|
|
131
|
-
364,
|
|
132
|
-
365,
|
|
133
|
-
365,
|
|
134
|
-
366,
|
|
135
|
-
366,
|
|
136
|
-
367,
|
|
137
|
-
367,
|
|
138
|
-
368,
|
|
139
|
-
368,
|
|
140
|
-
369,
|
|
141
|
-
369,
|
|
142
|
-
370,
|
|
143
|
-
370,
|
|
144
|
-
371,
|
|
145
|
-
371,
|
|
146
|
-
372,
|
|
147
|
-
372,
|
|
148
|
-
373,
|
|
149
|
-
373,
|
|
150
|
-
374,
|
|
151
|
-
374,
|
|
152
|
-
375,
|
|
153
|
-
375,
|
|
154
|
-
376,
|
|
155
|
-
376,
|
|
156
|
-
377,
|
|
157
|
-
377,
|
|
158
|
-
378,
|
|
159
|
-
378,
|
|
160
|
-
379,
|
|
161
|
-
379,
|
|
162
|
-
380,
|
|
163
|
-
380,
|
|
164
|
-
381,
|
|
165
|
-
381,
|
|
166
|
-
382,
|
|
167
|
-
382,
|
|
168
|
-
383,
|
|
169
|
-
383,
|
|
170
|
-
384,
|
|
171
|
-
384,
|
|
172
|
-
385,
|
|
173
|
-
385,
|
|
174
|
-
386,
|
|
175
|
-
386,
|
|
176
|
-
387,
|
|
177
|
-
387,
|
|
178
|
-
388,
|
|
179
|
-
388,
|
|
180
|
-
389,
|
|
181
|
-
389,
|
|
182
|
-
390,
|
|
183
|
-
390,
|
|
184
|
-
391,
|
|
185
|
-
391,
|
|
186
|
-
392,
|
|
187
|
-
392,
|
|
188
|
-
393,
|
|
189
|
-
393,
|
|
190
|
-
394,
|
|
191
|
-
394,
|
|
192
|
-
395,
|
|
193
|
-
395,
|
|
194
|
-
396,
|
|
195
|
-
396,
|
|
196
|
-
397,
|
|
197
|
-
397,
|
|
198
|
-
398,
|
|
199
|
-
398,
|
|
200
|
-
399,
|
|
201
|
-
399,
|
|
202
|
-
400,
|
|
203
|
-
400,
|
|
204
|
-
401,
|
|
205
|
-
401,
|
|
206
|
-
402,
|
|
207
|
-
402,
|
|
208
|
-
403,
|
|
209
|
-
403,
|
|
210
|
-
404,
|
|
211
|
-
404,
|
|
212
|
-
405,
|
|
213
|
-
405,
|
|
214
|
-
406,
|
|
215
|
-
406,
|
|
216
|
-
407,
|
|
217
|
-
407,
|
|
218
|
-
408,
|
|
219
|
-
408,
|
|
220
|
-
409,
|
|
221
|
-
409,
|
|
222
|
-
410,
|
|
223
|
-
410,
|
|
224
|
-
411,
|
|
225
|
-
411,
|
|
226
|
-
412,
|
|
227
|
-
412,
|
|
228
|
-
413,
|
|
229
|
-
413,
|
|
230
|
-
414,
|
|
231
|
-
414,
|
|
232
|
-
415,
|
|
233
|
-
415,
|
|
234
|
-
416,
|
|
235
|
-
416,
|
|
236
|
-
417,
|
|
237
|
-
417,
|
|
238
|
-
418,
|
|
239
|
-
418,
|
|
240
|
-
419,
|
|
241
|
-
419,
|
|
242
|
-
420,
|
|
243
|
-
420,
|
|
244
|
-
421,
|
|
245
|
-
421,
|
|
246
|
-
422,
|
|
247
|
-
422,
|
|
248
|
-
423,
|
|
249
|
-
423,
|
|
250
|
-
424,
|
|
251
|
-
424,
|
|
252
|
-
425,
|
|
253
|
-
425,
|
|
254
|
-
426,
|
|
255
|
-
426,
|
|
256
|
-
427,
|
|
257
|
-
427,
|
|
258
|
-
428,
|
|
259
|
-
428,
|
|
260
|
-
429,
|
|
261
|
-
429,
|
|
262
|
-
430,
|
|
263
|
-
430,
|
|
264
|
-
431,
|
|
265
|
-
431,
|
|
266
|
-
432,
|
|
267
|
-
432,
|
|
268
|
-
433,
|
|
269
|
-
433,
|
|
270
|
-
434,
|
|
271
|
-
434,
|
|
272
|
-
435,
|
|
273
|
-
435,
|
|
274
|
-
436,
|
|
275
|
-
436,
|
|
276
|
-
437,
|
|
277
|
-
437,
|
|
278
|
-
438,
|
|
279
|
-
438,
|
|
280
|
-
439,
|
|
281
|
-
439,
|
|
282
|
-
440,
|
|
283
|
-
440,
|
|
284
|
-
441,
|
|
285
|
-
441,
|
|
286
|
-
442,
|
|
287
|
-
442,
|
|
288
|
-
443,
|
|
289
|
-
443,
|
|
290
|
-
444,
|
|
291
|
-
444,
|
|
292
|
-
445,
|
|
293
|
-
445,
|
|
294
|
-
446,
|
|
295
|
-
446,
|
|
296
|
-
447,
|
|
297
|
-
447,
|
|
298
|
-
448,
|
|
299
|
-
448,
|
|
300
|
-
449,
|
|
301
|
-
449,
|
|
302
|
-
450,
|
|
303
|
-
450,
|
|
304
|
-
451,
|
|
305
|
-
451,
|
|
306
|
-
452,
|
|
307
|
-
452,
|
|
308
|
-
453,
|
|
309
|
-
453,
|
|
310
|
-
454,
|
|
311
|
-
454,
|
|
312
|
-
455,
|
|
313
|
-
455,
|
|
314
|
-
456,
|
|
315
|
-
456,
|
|
316
|
-
457,
|
|
317
|
-
457,
|
|
318
|
-
458,
|
|
319
|
-
458,
|
|
320
|
-
459,
|
|
321
|
-
459,
|
|
322
|
-
460,
|
|
323
|
-
460,
|
|
324
|
-
461,
|
|
325
|
-
461,
|
|
326
|
-
462,
|
|
327
|
-
462,
|
|
328
|
-
463,
|
|
329
|
-
463,
|
|
330
|
-
464,
|
|
331
|
-
464,
|
|
332
|
-
465,
|
|
333
|
-
465,
|
|
334
|
-
466,
|
|
335
|
-
466,
|
|
336
|
-
467,
|
|
337
|
-
467,
|
|
338
|
-
468,
|
|
339
|
-
468,
|
|
340
|
-
469,
|
|
341
|
-
469,
|
|
342
|
-
470,
|
|
343
|
-
470,
|
|
344
|
-
471,
|
|
345
|
-
471,
|
|
346
|
-
472,
|
|
347
|
-
472,
|
|
348
|
-
473,
|
|
349
|
-
473,
|
|
350
|
-
474,
|
|
351
|
-
474,
|
|
352
|
-
475,
|
|
353
|
-
475,
|
|
354
|
-
476,
|
|
355
|
-
476,
|
|
356
|
-
477,
|
|
357
|
-
477,
|
|
358
|
-
478,
|
|
359
|
-
478,
|
|
360
|
-
479,
|
|
361
|
-
479,
|
|
362
|
-
480,
|
|
363
|
-
480,
|
|
364
|
-
481,
|
|
365
|
-
481,
|
|
366
|
-
482,
|
|
367
|
-
482,
|
|
368
|
-
483,
|
|
369
|
-
483,
|
|
370
|
-
484,
|
|
371
|
-
484,
|
|
372
|
-
485,
|
|
373
|
-
485,
|
|
374
|
-
486,
|
|
375
|
-
486,
|
|
376
|
-
487,
|
|
377
|
-
487,
|
|
378
|
-
488,
|
|
379
|
-
488,
|
|
380
|
-
489,
|
|
381
|
-
489,
|
|
382
|
-
490,
|
|
383
|
-
490,
|
|
384
|
-
491,
|
|
385
|
-
491,
|
|
386
|
-
492,
|
|
387
|
-
492,
|
|
388
|
-
493,
|
|
389
|
-
493,
|
|
390
|
-
494,
|
|
391
|
-
494,
|
|
392
|
-
495,
|
|
393
|
-
495,
|
|
394
|
-
496,
|
|
395
|
-
496,
|
|
396
|
-
497,
|
|
397
|
-
497,
|
|
398
|
-
498,
|
|
399
|
-
498,
|
|
400
|
-
499,
|
|
401
|
-
499,
|
|
402
|
-
500,
|
|
403
|
-
500,
|
|
404
|
-
501,
|
|
405
|
-
501,
|
|
406
|
-
502,
|
|
407
|
-
502,
|
|
408
|
-
503,
|
|
409
|
-
503,
|
|
410
|
-
504,
|
|
411
|
-
504,
|
|
412
|
-
505,
|
|
413
|
-
505,
|
|
414
|
-
506,
|
|
415
|
-
506,
|
|
416
|
-
507,
|
|
417
|
-
507,
|
|
418
|
-
508,
|
|
419
|
-
508,
|
|
420
|
-
509,
|
|
421
|
-
509,
|
|
422
|
-
510,
|
|
423
|
-
510,
|
|
424
|
-
511,
|
|
425
|
-
511,
|
|
426
|
-
512,
|
|
427
|
-
512,
|
|
428
|
-
513,
|
|
429
|
-
513,
|
|
430
|
-
514,
|
|
431
|
-
514,
|
|
432
|
-
515,
|
|
433
|
-
515,
|
|
434
|
-
516,
|
|
435
|
-
516,
|
|
436
|
-
517,
|
|
437
|
-
517,
|
|
438
|
-
518,
|
|
439
|
-
518,
|
|
440
|
-
519,
|
|
441
|
-
519,
|
|
442
|
-
520,
|
|
443
|
-
520,
|
|
444
|
-
521,
|
|
445
|
-
521,
|
|
446
|
-
522,
|
|
447
|
-
522,
|
|
448
|
-
523,
|
|
449
|
-
523,
|
|
450
|
-
524,
|
|
451
|
-
524,
|
|
452
|
-
525,
|
|
453
|
-
525,
|
|
454
|
-
526,
|
|
455
|
-
526,
|
|
456
|
-
527,
|
|
457
|
-
527,
|
|
458
|
-
528,
|
|
459
|
-
528,
|
|
460
|
-
529,
|
|
461
|
-
529,
|
|
462
|
-
530,
|
|
463
|
-
530,
|
|
464
|
-
531,
|
|
465
|
-
531,
|
|
466
|
-
532,
|
|
467
|
-
532,
|
|
468
|
-
533,
|
|
469
|
-
533,
|
|
470
|
-
534,
|
|
471
|
-
534,
|
|
472
|
-
535,
|
|
473
|
-
535,
|
|
474
|
-
536,
|
|
475
|
-
536,
|
|
476
|
-
537,
|
|
477
|
-
537,
|
|
478
|
-
538,
|
|
479
|
-
538,
|
|
480
|
-
539,
|
|
481
|
-
539,
|
|
482
|
-
540,
|
|
483
|
-
540,
|
|
484
|
-
541,
|
|
485
|
-
541,
|
|
486
|
-
542,
|
|
487
|
-
542,
|
|
488
|
-
543,
|
|
489
|
-
543,
|
|
490
|
-
544,
|
|
491
|
-
544,
|
|
492
|
-
545,
|
|
493
|
-
545,
|
|
494
|
-
546,
|
|
495
|
-
546,
|
|
496
|
-
547,
|
|
497
|
-
547,
|
|
498
|
-
548,
|
|
499
|
-
548,
|
|
500
|
-
549,
|
|
501
|
-
549
|
|
502
|
-
]
|
|
2
|
+
162, 300, 301, 302, 303, 304, 305, 306, 307, 308,
|
|
3
|
+
309, 310, 311, 312, 313, 314, 315, 316, 317, 318,
|
|
4
|
+
319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
|
|
5
|
+
329, 330, 331, 332, 333, 334, 335, 336, 337, 338,
|
|
6
|
+
339, 340, 341, 342, 343, 344, 345, 346, 347, 348,
|
|
7
|
+
349, 350, 351, 352, 353, 354, 355, 356, 357, 358,
|
|
8
|
+
359, 360, 361, 362, 363, 364, 365, 366, 367, 368,
|
|
9
|
+
369, 370, 371, 372, 373, 374, 375, 376, 377, 378,
|
|
10
|
+
379, 380, 381, 382, 383, 384, 385, 386, 387, 388,
|
|
11
|
+
389, 390, 391, 392, 393, 394, 395, 396, 397, 398,
|
|
12
|
+
399, 400, 401, 402, 403, 404, 405, 406, 407, 408,
|
|
13
|
+
409, 410, 411, 412, 413, 414, 415, 416, 417, 418,
|
|
14
|
+
419, 420, 421, 422, 423, 424, 425, 426, 427, 428,
|
|
15
|
+
429, 430, 431, 432, 433, 434, 435, 436, 437, 438,
|
|
16
|
+
439, 440, 441, 442, 443, 444, 445, 446, 447, 448,
|
|
17
|
+
449, 450, 451, 452, 453, 454, 455, 456, 457, 458,
|
|
18
|
+
459, 460, 461, 462, 463, 464, 465, 466, 467, 468,
|
|
19
|
+
469, 470, 471, 472, 473, 474, 475, 476, 477, 478,
|
|
20
|
+
479, 480, 481, 482, 483, 484, 485, 486, 487, 488,
|
|
21
|
+
489, 490, 491, 492, 493, 494, 495, 496, 497, 498,
|
|
22
|
+
499, 500, 501, 502, 503, 504, 505, 506, 507, 508,
|
|
23
|
+
509, 510, 511, 512, 513, 514, 515, 516, 517, 518,
|
|
24
|
+
519, 520, 521, 522, 523, 524, 525, 526, 527, 528,
|
|
25
|
+
529, 530, 531, 532, 533, 534, 535, 536, 537, 538,
|
|
26
|
+
539, 540, 541, 542, 543, 544, 545, 546, 547, 548,
|
|
27
|
+
549, 550, 551, 552, 553, 554, 555, 556, 557, 558,
|
|
28
|
+
559, 560, 561, 562, 563, 564, 565, 566, 567, 568,
|
|
29
|
+
569, 570, 571, 572, 573, 574, 575, 576, 577, 578,
|
|
30
|
+
579, 580, 581, 582, 583, 584, 585, 586, 587, 588,
|
|
31
|
+
589, 590, 591, 592, 593, 594, 595, 596, 597, 598,
|
|
32
|
+
599, 600, 601, 602, 603, 604, 605, 606, 607, 608,
|
|
33
|
+
609, 610, 611, 612, 613, 614, 615, 616, 617, 618,
|
|
34
|
+
619, 620, 621, 622, 623, 624, 625, 626, 627, 628,
|
|
35
|
+
629, 630, 631, 632, 633, 634, 635, 636, 637, 638,
|
|
36
|
+
639, 640, 641, 642, 643, 644, 645, 646, 647, 648,
|
|
37
|
+
649, 650, 651, 652, 653, 654, 655, 656, 657, 658,
|
|
38
|
+
659, 660, 661, 662, 663, 664, 665, 666, 667, 668,
|
|
39
|
+
669, 670, 671, 672, 673, 674, 675, 676, 677, 678,
|
|
40
|
+
679, 680, 681, 682, 683, 684, 685, 686, 687, 688,
|
|
41
|
+
689, 690, 691, 692, 693, 694, 695, 696, 697, 698,
|
|
42
|
+
699, 700, 701, 702, 703, 704, 705, 706, 707, 708,
|
|
43
|
+
709, 710, 711, 712, 713, 714, 715, 716, 717, 718,
|
|
44
|
+
719, 720, 721, 722, 723, 724, 725, 726, 727, 728,
|
|
45
|
+
729, 730, 731, 732, 733, 734, 735, 736, 737, 738,
|
|
46
|
+
739, 740, 741, 742, 743, 744, 745, 746, 747, 748,
|
|
47
|
+
749, 750, 751, 752, 753, 754, 755, 756, 757, 758,
|
|
48
|
+
759, 760, 761, 762, 763, 764, 765, 766, 767, 768,
|
|
49
|
+
769, 770, 771, 772, 773, 774, 775, 776, 777, 778,
|
|
50
|
+
779, 780, 781, 782, 783, 784, 785, 786, 787, 788,
|
|
51
|
+
789, 790, 791, 792, 793, 794, 795, 796, 797, 798,
|
|
52
|
+
799, 800, 801, 802, 803, 804, 805, 806, 807, 808,
|
|
53
|
+
809, 810, 811, 812, 813, 814, 815, 816, 819, 820,
|
|
54
|
+
832, 840, 841, 843, 844, 846, 847, 849, 850, 852,
|
|
55
|
+
853, 854, 855, 856, 888, 894, 949, 963, 964, 965,
|
|
56
|
+
969, 995, 997, 1000, 1002, 1003, 1005, 1009, 1014,
|
|
57
|
+
1016, 1021, 1043, 1046, 1048, 1049, 1051, 1052, 1054,
|
|
58
|
+
1057, 1061, 1062, 1067, 1097, 1104, 1110, 1124, 1134,
|
|
59
|
+
1136, 1140, 1143, 1144, 1154, 1156, 1159, 1162, 1164,
|
|
60
|
+
1165, 1168, 1170, 1172, 1173, 1174, 1175, 1176, 1178,
|
|
61
|
+
1179, 1180, 1182, 1184, 1185, 1186, 1187, 1188, 1189,
|
|
62
|
+
1190, 1191, 1192, 1195, 1196, 1199, 1200, 1201, 1202,
|
|
63
|
+
1203, 1204, 1206, 1207, 1210, 1223, 1253
|
|
64
|
+
];
|
|
@@ -11,7 +11,7 @@ import InfoIcon from "../../../assets/images/sliderToolTip/infoIcon.svg";
|
|
|
11
11
|
import Slide1 from "../../../assets/images/sliderToolTip/slide21.svg";
|
|
12
12
|
import Slide2 from "../../../assets/images/sliderToolTip/slide22.svg";
|
|
13
13
|
import Slide3 from "../../../assets/images/sliderToolTip/slide23.svg";
|
|
14
|
-
import { FinancedCompanies } from "./FinancedCompanies";
|
|
14
|
+
import { FinancedCompanies } from "./FinancedCompanies";
|
|
15
15
|
|
|
16
16
|
export const StatusAsignationInfo = ({
|
|
17
17
|
status = "-",
|
|
@@ -8,5 +8,6 @@ export default {
|
|
|
8
8
|
const Template = (args) => <CardSelector {...args} />;
|
|
9
9
|
export const CardSelectorDefault = Template.bind({});
|
|
10
10
|
CardSelectorDefault.args = {
|
|
11
|
-
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
11
|
+
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIxMTAyNWQzMi1kMTM5LTQ0MzctYmZlYy1hNWY1Njg0NDdjODciLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY5NDQ3ODQ2NSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2OTQ0ODIwNjUsImlhdCI6MTY5NDQ3ODQ2NSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.Fia8x4aahTvCOdt2GohSNoe_9XgBcVuF4bXGWvuNTJ7-_YTe9t1vxGlhw7AG0WC2-tqFiAdx8_UojxqX-UW4lE6vI3pGLmkF7hEfV4XCWq6I3pF5aXYDkRD4YBPyQfzBgwQsx4bR_rm5oRfHPItfc_zJwObV9rQgTYLEQ9u-SL2t0bdx2yOmAjCAtGHp83w5highRkcZx0huKGJnRQ4Wmt5HlgAvsnkzqAimC9E6NH-IDLMAXq8T2f9INPzcdMR403Ybpy3Zrqphw5ITHK1tkUUZxcVsaAnRM7g1-q0OA5S0vRFbcw2lRgaZ_DVJbk0Lzba5NK4nDZ4U97Nw_zXqLA",
|
|
12
|
+
isSelected: true,
|
|
12
13
|
};
|
|
@@ -2,8 +2,7 @@ import { Container } from "./styles";
|
|
|
2
2
|
import { ScreenHeader } from "../../atoms/ScreenHeader/index";
|
|
3
3
|
import { GeneralInput } from "../../atoms/GeneralInput/index";
|
|
4
4
|
import { useState, useEffect } from "react";
|
|
5
|
-
|
|
6
|
-
import rejectIcon from "../../../assets/images/generalButton/rejectIcon.svg";
|
|
5
|
+
|
|
7
6
|
export const TagAndInput = ({
|
|
8
7
|
inputType,
|
|
9
8
|
label,
|
|
@@ -31,14 +30,12 @@ export const TagAndInput = ({
|
|
|
31
30
|
onKeyDown,
|
|
32
31
|
showTooltip,
|
|
33
32
|
auditClass,
|
|
34
|
-
onChange,
|
|
33
|
+
onChange,
|
|
35
34
|
dataInputs,
|
|
36
35
|
inputGroup,
|
|
37
36
|
boxOnboardingData,
|
|
38
37
|
}) => {
|
|
39
|
-
const [boxOnboardingList, setBoxOnboardingList] = useState(
|
|
40
|
-
boxOnboardingData || []
|
|
41
|
-
);
|
|
38
|
+
const [boxOnboardingList, setBoxOnboardingList] = useState(boxOnboardingData || []);
|
|
42
39
|
|
|
43
40
|
useEffect(() => {
|
|
44
41
|
const temp = {};
|
|
@@ -55,11 +52,12 @@ export const TagAndInput = ({
|
|
|
55
52
|
if (tempList.length > 0) {
|
|
56
53
|
setBoxOnboardingList(
|
|
57
54
|
tempList.map((value, index) =>
|
|
58
|
-
index === tempList.length - 1 ? {
|
|
55
|
+
index === tempList.length - 1 ? {value } : { value }
|
|
59
56
|
)
|
|
60
57
|
);
|
|
61
58
|
}
|
|
62
59
|
}, []);
|
|
60
|
+
|
|
63
61
|
useEffect(() => {
|
|
64
62
|
onChange && onChange(boxOnboardingList);
|
|
65
63
|
}, [boxOnboardingList]);
|
|
@@ -70,7 +68,7 @@ export const TagAndInput = ({
|
|
|
70
68
|
className={"input-container"}
|
|
71
69
|
key={`generalTagInput-${inputType}`}
|
|
72
70
|
>
|
|
73
|
-
|
|
71
|
+
{label?.length && (
|
|
74
72
|
<div className="title-container">
|
|
75
73
|
<ScreenHeader
|
|
76
74
|
text={label}
|