contentoh-components-library 21.3.92 → 21.3.94
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/.env.development +0 -5
- package/.env.production +0 -3
- package/dist/assets/fonts/roboto/LICENSE.txt +202 -0
- package/dist/components/atoms/Avatar/index.js +2 -3
- package/dist/components/atoms/Card/index.js +5 -46
- package/dist/components/atoms/Card/styles.js +1 -3
- package/dist/components/atoms/CheckBox/index.js +2 -7
- package/dist/components/atoms/CheckBox/styles.js +1 -1
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +11 -68
- package/dist/components/molecules/TabsMenu/index.js +13 -7
- package/dist/components/molecules/TagAndInput/index.js +1 -1
- package/dist/components/organisms/Chat/Chat.stories.js +8 -27
- package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +197 -350
- package/dist/components/organisms/Chat/Footer/index.js +39 -48
- package/dist/components/organisms/Chat/index.js +4 -49
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/FullTabsMenu/index.js +3 -1
- package/dist/components/organisms/Modal/styles.js +1 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +96 -171
- package/dist/components/pages/ProviderProductEdition/index.js +178 -190
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -77
- package/dist/components/pages/RetailerProductEdition/index.js +276 -290
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
- package/dist/index.js +52 -182
- package/package.json +1 -4
- package/src/components/atoms/Avatar/index.js +2 -8
- package/src/components/atoms/Card/index.js +2 -35
- package/src/components/atoms/Card/styles.js +5 -41
- package/src/components/atoms/CheckBox/index.js +1 -4
- package/src/components/atoms/CheckBox/styles.js +0 -2
- package/src/components/atoms/InputFormatter/styles.js +1 -2
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +6 -52
- package/src/components/molecules/TabsMenu/index.js +16 -10
- package/src/components/molecules/TagAndInput/index.js +8 -10
- 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 -10
- 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/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/FullTabsMenu/index.js +3 -1
- package/src/components/organisms/Modal/styles.js +1 -4
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +98 -181
- package/src/components/pages/ProviderProductEdition/index.js +132 -134
- package/src/components/pages/ProviderProductEdition/styles.js +1 -5
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +46 -76
- package/src/components/pages/RetailerProductEdition/index.js +138 -123
- package/src/components/pages/RetailerProductEdition/styles.js +0 -4
- package/src/components/pages/RetailerProductEdition/utils.js +0 -37
- package/src/index.js +0 -11
- package/dist/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -90
- package/dist/components/atoms/ImageCarousel/index.js +0 -123
- package/dist/components/atoms/ImageCarousel/styles.js +0 -18
- package/dist/components/atoms/PercentTag/PercentTag.stories.js +0 -31
- package/dist/components/atoms/PercentTag/index.js +0 -23
- package/dist/components/atoms/PercentTag/styles.js +0 -22
- package/dist/components/atoms/RatingStars/RatingStars.stories.js +0 -30
- package/dist/components/atoms/RatingStars/index.js +0 -53
- package/dist/components/atoms/RatingStars/styles.js +0 -18
- package/dist/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -48
- package/dist/components/atoms/RetailerCatalog/index.js +0 -69
- package/dist/components/atoms/RetailerCatalog/styles.js +0 -20
- package/dist/components/atoms/RetailerOption/RetailerOption.stories.js +0 -33
- package/dist/components/atoms/RetailerOption/index.js +0 -62
- package/dist/components/atoms/RetailerOption/styles.js +0 -20
- package/dist/components/atoms/RetailersList/RetailersList.stories.js +0 -45
- package/dist/components/atoms/RetailersList/index.js +0 -44
- package/dist/components/atoms/RetailersList/styles.js +0 -18
- package/dist/components/atoms/UserCatalog/UserCatalog.stories.js +0 -72
- package/dist/components/atoms/UserCatalog/index.js +0 -89
- package/dist/components/atoms/UserCatalog/styles.js +0 -18
- package/dist/components/atoms/UserOption/UserOption.stories.js +0 -40
- package/dist/components/atoms/UserOption/index.js +0 -80
- package/dist/components/atoms/UserOption/styles.js +0 -20
- package/dist/components/atoms/UserSelector/UserSelector.stories.js +0 -40
- package/dist/components/atoms/UserSelector/index.js +0 -91
- package/dist/components/atoms/UserSelector/styles.js +0 -32
- package/dist/components/molecules/GridItem/GridItem.stories.js +0 -123
- package/dist/components/molecules/GridItem/index.js +0 -122
- package/dist/components/molecules/GridItem/styles.js +0 -20
- package/dist/components/molecules/HeaderItem/ColumnItem.js +0 -23
- package/dist/components/molecules/HeaderItem/HeaderItem.stories.js +0 -70
- package/dist/components/molecules/HeaderItem/index.js +0 -42
- package/dist/components/molecules/HeaderItem/styles.js +0 -30
- package/dist/components/molecules/RowItem/ColumnItem.js +0 -23
- package/dist/components/molecules/RowItem/RowItem.stories.js +0 -5242
- package/dist/components/molecules/RowItem/index.js +0 -59
- package/dist/components/molecules/RowItem/styles.js +0 -30
- package/dist/components/organisms/GridProducts/GridProducts.stories.js +0 -5093
- package/dist/components/organisms/GridProducts/index.js +0 -81
- package/dist/components/organisms/GridProducts/styles.js +0 -18
- package/dist/components/organisms/GridProducts/utils.js +0 -139
- package/src/components/atoms/ImageCarousel/ImgeSlider.stories.js +0 -76
- package/src/components/atoms/ImageCarousel/index.js +0 -103
- package/src/components/atoms/ImageCarousel/styles.js +0 -79
- package/src/components/atoms/PercentTag/PercentTag.stories.js +0 -7
- package/src/components/atoms/PercentTag/index.js +0 -9
- package/src/components/atoms/PercentTag/styles.js +0 -69
- package/src/components/atoms/RatingStars/RatingStars.stories.js +0 -10
- package/src/components/atoms/RatingStars/index.js +0 -31
- package/src/components/atoms/RatingStars/styles.js +0 -28
- package/src/components/atoms/RetailerCatalog/RetailerCatalog.stories.js +0 -36
- package/src/components/atoms/RetailerCatalog/index.js +0 -49
- package/src/components/atoms/RetailerCatalog/styles.js +0 -30
- package/src/components/atoms/RetailerOption/RetailerOption.stories.js +0 -15
- package/src/components/atoms/RetailerOption/index.js +0 -53
- package/src/components/atoms/RetailerOption/styles.js +0 -41
- package/src/components/atoms/RetailersList/RetailersList.stories.js +0 -33
- package/src/components/atoms/RetailersList/index.js +0 -20
- package/src/components/atoms/RetailersList/styles.js +0 -19
- package/src/components/atoms/UserCatalog/UserCatalog.stories.js +0 -66
- package/src/components/atoms/UserCatalog/index.js +0 -77
- package/src/components/atoms/UserCatalog/styles.js +0 -24
- package/src/components/atoms/UserOption/UserOption.stories.js +0 -25
- package/src/components/atoms/UserOption/index.js +0 -49
- package/src/components/atoms/UserOption/styles.js +0 -54
- package/src/components/atoms/UserSelector/UserSelector.stories.js +0 -25
- package/src/components/atoms/UserSelector/index.js +0 -70
- package/src/components/atoms/UserSelector/styles.js +0 -55
- package/src/components/molecules/GridItem/GridItem.stories.js +0 -126
- package/src/components/molecules/GridItem/index.js +0 -82
- package/src/components/molecules/GridItem/styles.js +0 -85
- package/src/components/molecules/HeaderItem/ColumnItem.js +0 -9
- package/src/components/molecules/HeaderItem/HeaderItem.stories.js +0 -24
- package/src/components/molecules/HeaderItem/index.js +0 -26
- package/src/components/molecules/HeaderItem/styles.js +0 -25
- package/src/components/molecules/RowItem/ColumnItem.js +0 -9
- package/src/components/molecules/RowItem/RowItem.stories.js +0 -5660
- package/src/components/molecules/RowItem/index.js +0 -45
- package/src/components/molecules/RowItem/styles.js +0 -38
- package/src/components/molecules/StripeCardForm/StripeCardForm.stories.js +0 -13
- package/src/components/molecules/StripeCardForm/index.js +0 -42
- package/src/components/molecules/StripeCardForm/paymentForm.js +0 -124
- package/src/components/molecules/StripeCardForm/styles.js +0 -73
- package/src/components/molecules/StripeCardSelector/CardSelector.stories.js +0 -12
- package/src/components/molecules/StripeCardSelector/index.js +0 -44
- package/src/components/molecules/StripeCardSelector/styles.js +0 -4
- package/src/components/molecules/StripeCardSelector/utils.js +0 -17
- package/src/components/organisms/GridProducts/GridProducts.stories.js +0 -5474
- package/src/components/organisms/GridProducts/index.js +0 -59
- package/src/components/organisms/GridProducts/styles.js +0 -15
- package/src/components/organisms/GridProducts/utils.js +0 -103
- package/src/components/organisms/SideModal/SideModal.stories.js +0 -23
- package/src/components/organisms/SideModal/index.js +0 -50
- package/src/components/organisms/SideModal/styles.js +0 -30
|
@@ -13,7 +13,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: calc(100% - 341px);\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n }\n }\n
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: calc(100% - 341px);\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n }\n }\n .container {\n width: 100%;\n height: 100%;\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n"])), function (_ref) {
|
|
17
17
|
var headerTop = _ref.headerTop;
|
|
18
18
|
return headerTop;
|
|
19
19
|
});
|
|
@@ -5,18 +5,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.getInputsData = exports.getAuditVersion = void 0;
|
|
9
9
|
|
|
10
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
11
|
|
|
12
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
13
|
-
|
|
14
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
15
13
|
|
|
16
14
|
var _axios = _interopRequireDefault(require("axios"));
|
|
17
15
|
|
|
18
|
-
var _handle_http = require("../../../global-files/handle_http");
|
|
19
|
-
|
|
20
16
|
var getAuditVersion = /*#__PURE__*/function () {
|
|
21
17
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(articleId, setState, token) {
|
|
22
18
|
var auditResponse;
|
|
@@ -68,59 +64,4 @@ var getInputsData = function getInputsData(services, activeRetailer, setDatashee
|
|
|
68
64
|
}
|
|
69
65
|
};
|
|
70
66
|
|
|
71
|
-
exports.getInputsData = getInputsData;
|
|
72
|
-
|
|
73
|
-
var translateService = function translateService(tab) {
|
|
74
|
-
switch (tab) {
|
|
75
|
-
case "description":
|
|
76
|
-
case "Descripción":
|
|
77
|
-
return "Descripciones";
|
|
78
|
-
|
|
79
|
-
case "datasheet":
|
|
80
|
-
case "Ficha técnica":
|
|
81
|
-
return "Fichas técnicas";
|
|
82
|
-
|
|
83
|
-
case "images":
|
|
84
|
-
case "Imágenes":
|
|
85
|
-
return "Imágenes";
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
exports.translateService = translateService;
|
|
90
|
-
|
|
91
|
-
var createMessage = function createMessage(retailers, idRetailer, oldStatus, newStatus, service) {
|
|
92
|
-
var _ref2 = (retailers === null || retailers === void 0 ? void 0 : retailers.filter(function (ret) {
|
|
93
|
-
return ret.id === idRetailer;
|
|
94
|
-
})) || [],
|
|
95
|
-
_ref3 = (0, _slicedToArray2.default)(_ref2, 1),
|
|
96
|
-
retailer = _ref3[0];
|
|
97
|
-
|
|
98
|
-
return "".concat(translateService(service), " de ").concat(retailer.name, " |").concat(oldStatus, "| a |").concat(newStatus);
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
exports.createMessage = createMessage;
|
|
102
|
-
|
|
103
|
-
var sendMessage = /*#__PURE__*/function () {
|
|
104
|
-
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(data) {
|
|
105
|
-
var paramsBody, paramsHeader;
|
|
106
|
-
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
107
|
-
while (1) {
|
|
108
|
-
switch (_context2.prev = _context2.next) {
|
|
109
|
-
case 0:
|
|
110
|
-
paramsBody = data.paramsBody, paramsHeader = data.paramsHeader;
|
|
111
|
-
return _context2.abrupt("return", (0, _handle_http.fetchPOST)(process.env.REACT_APP_CREATE_MESSAGES, paramsBody, paramsHeader));
|
|
112
|
-
|
|
113
|
-
case 2:
|
|
114
|
-
case "end":
|
|
115
|
-
return _context2.stop();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}, _callee2);
|
|
119
|
-
}));
|
|
120
|
-
|
|
121
|
-
return function sendMessage(_x4) {
|
|
122
|
-
return _ref4.apply(this, arguments);
|
|
123
|
-
};
|
|
124
|
-
}();
|
|
125
|
-
|
|
126
|
-
exports.sendMessage = sendMessage;
|
|
67
|
+
exports.getInputsData = getInputsData;
|
package/dist/index.js
CHANGED
|
@@ -446,7 +446,7 @@ Object.keys(_index34).forEach(function (key) {
|
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
448
|
|
|
449
|
-
var _index35 = require("./components/
|
|
449
|
+
var _index35 = require("./components/molecules/AvatarAndValidation/index");
|
|
450
450
|
|
|
451
451
|
Object.keys(_index35).forEach(function (key) {
|
|
452
452
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -459,59 +459,59 @@ Object.keys(_index35).forEach(function (key) {
|
|
|
459
459
|
});
|
|
460
460
|
});
|
|
461
461
|
|
|
462
|
-
var
|
|
462
|
+
var _CarouselImagesLogin = require("./components/molecules/CarouselImagesLogin");
|
|
463
463
|
|
|
464
|
-
Object.keys(
|
|
464
|
+
Object.keys(_CarouselImagesLogin).forEach(function (key) {
|
|
465
465
|
if (key === "default" || key === "__esModule") return;
|
|
466
|
-
if (key in exports && exports[key] ===
|
|
466
|
+
if (key in exports && exports[key] === _CarouselImagesLogin[key]) return;
|
|
467
467
|
Object.defineProperty(exports, key, {
|
|
468
468
|
enumerable: true,
|
|
469
469
|
get: function get() {
|
|
470
|
-
return
|
|
470
|
+
return _CarouselImagesLogin[key];
|
|
471
471
|
}
|
|
472
472
|
});
|
|
473
473
|
});
|
|
474
474
|
|
|
475
|
-
var
|
|
475
|
+
var _index36 = require("./components/molecules/EditionActiveImage/index");
|
|
476
476
|
|
|
477
|
-
Object.keys(
|
|
477
|
+
Object.keys(_index36).forEach(function (key) {
|
|
478
478
|
if (key === "default" || key === "__esModule") return;
|
|
479
|
-
if (key in exports && exports[key] ===
|
|
479
|
+
if (key in exports && exports[key] === _index36[key]) return;
|
|
480
480
|
Object.defineProperty(exports, key, {
|
|
481
481
|
enumerable: true,
|
|
482
482
|
get: function get() {
|
|
483
|
-
return
|
|
483
|
+
return _index36[key];
|
|
484
484
|
}
|
|
485
485
|
});
|
|
486
486
|
});
|
|
487
487
|
|
|
488
|
-
var
|
|
488
|
+
var _index37 = require("./components/molecules/EmailResetPasswordLogin/index");
|
|
489
489
|
|
|
490
|
-
Object.keys(
|
|
490
|
+
Object.keys(_index37).forEach(function (key) {
|
|
491
491
|
if (key === "default" || key === "__esModule") return;
|
|
492
|
-
if (key in exports && exports[key] ===
|
|
492
|
+
if (key in exports && exports[key] === _index37[key]) return;
|
|
493
493
|
Object.defineProperty(exports, key, {
|
|
494
494
|
enumerable: true,
|
|
495
495
|
get: function get() {
|
|
496
|
-
return
|
|
496
|
+
return _index37[key];
|
|
497
497
|
}
|
|
498
498
|
});
|
|
499
499
|
});
|
|
500
500
|
|
|
501
|
-
var
|
|
501
|
+
var _index38 = require("./components/molecules/FeaturesBar/index");
|
|
502
502
|
|
|
503
|
-
Object.keys(
|
|
503
|
+
Object.keys(_index38).forEach(function (key) {
|
|
504
504
|
if (key === "default" || key === "__esModule") return;
|
|
505
|
-
if (key in exports && exports[key] ===
|
|
505
|
+
if (key in exports && exports[key] === _index38[key]) return;
|
|
506
506
|
Object.defineProperty(exports, key, {
|
|
507
507
|
enumerable: true,
|
|
508
508
|
get: function get() {
|
|
509
|
-
return
|
|
509
|
+
return _index38[key];
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
});
|
|
513
513
|
|
|
514
|
-
var _index39 = require("./components/molecules/
|
|
514
|
+
var _index39 = require("./components/molecules/GalleryElement/index");
|
|
515
515
|
|
|
516
516
|
Object.keys(_index39).forEach(function (key) {
|
|
517
517
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -524,7 +524,7 @@ Object.keys(_index39).forEach(function (key) {
|
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
526
|
|
|
527
|
-
var _index40 = require("./components/molecules/
|
|
527
|
+
var _index40 = require("./components/molecules/HeaderTop/index");
|
|
528
528
|
|
|
529
529
|
Object.keys(_index40).forEach(function (key) {
|
|
530
530
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -537,7 +537,7 @@ Object.keys(_index40).forEach(function (key) {
|
|
|
537
537
|
});
|
|
538
538
|
});
|
|
539
539
|
|
|
540
|
-
var _index41 = require("./components/molecules/
|
|
540
|
+
var _index41 = require("./components/molecules/ImageSelector/index");
|
|
541
541
|
|
|
542
542
|
Object.keys(_index41).forEach(function (key) {
|
|
543
543
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -550,7 +550,7 @@ Object.keys(_index41).forEach(function (key) {
|
|
|
550
550
|
});
|
|
551
551
|
});
|
|
552
552
|
|
|
553
|
-
var _index42 = require("./components/molecules/
|
|
553
|
+
var _index42 = require("./components/molecules/LoginPasswordStrength/index");
|
|
554
554
|
|
|
555
555
|
Object.keys(_index42).forEach(function (key) {
|
|
556
556
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -563,7 +563,7 @@ Object.keys(_index42).forEach(function (key) {
|
|
|
563
563
|
});
|
|
564
564
|
});
|
|
565
565
|
|
|
566
|
-
var _index43 = require("./components/molecules/
|
|
566
|
+
var _index43 = require("./components/molecules/LogoLoading/index");
|
|
567
567
|
|
|
568
568
|
Object.keys(_index43).forEach(function (key) {
|
|
569
569
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -576,7 +576,7 @@ Object.keys(_index43).forEach(function (key) {
|
|
|
576
576
|
});
|
|
577
577
|
});
|
|
578
578
|
|
|
579
|
-
var _index44 = require("./components/molecules/
|
|
579
|
+
var _index44 = require("./components/molecules/PlanSelection/index");
|
|
580
580
|
|
|
581
581
|
Object.keys(_index44).forEach(function (key) {
|
|
582
582
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -589,7 +589,7 @@ Object.keys(_index44).forEach(function (key) {
|
|
|
589
589
|
});
|
|
590
590
|
});
|
|
591
591
|
|
|
592
|
-
var _index45 = require("./components/molecules/
|
|
592
|
+
var _index45 = require("./components/molecules/ProductNameHeader/index");
|
|
593
593
|
|
|
594
594
|
Object.keys(_index45).forEach(function (key) {
|
|
595
595
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -602,7 +602,7 @@ Object.keys(_index45).forEach(function (key) {
|
|
|
602
602
|
});
|
|
603
603
|
});
|
|
604
604
|
|
|
605
|
-
var _index46 = require("./components/molecules/
|
|
605
|
+
var _index46 = require("./components/molecules/RegistrationFirstStep/index");
|
|
606
606
|
|
|
607
607
|
Object.keys(_index46).forEach(function (key) {
|
|
608
608
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -615,7 +615,7 @@ Object.keys(_index46).forEach(function (key) {
|
|
|
615
615
|
});
|
|
616
616
|
});
|
|
617
617
|
|
|
618
|
-
var _index47 = require("./components/molecules/
|
|
618
|
+
var _index47 = require("./components/molecules/RegistrationSecondStep/index");
|
|
619
619
|
|
|
620
620
|
Object.keys(_index47).forEach(function (key) {
|
|
621
621
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -628,7 +628,7 @@ Object.keys(_index47).forEach(function (key) {
|
|
|
628
628
|
});
|
|
629
629
|
});
|
|
630
630
|
|
|
631
|
-
var _index48 = require("./components/molecules/
|
|
631
|
+
var _index48 = require("./components/molecules/RegistrationThirdStep/index");
|
|
632
632
|
|
|
633
633
|
Object.keys(_index48).forEach(function (key) {
|
|
634
634
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -641,7 +641,7 @@ Object.keys(_index48).forEach(function (key) {
|
|
|
641
641
|
});
|
|
642
642
|
});
|
|
643
643
|
|
|
644
|
-
var _index49 = require("./components/molecules/
|
|
644
|
+
var _index49 = require("./components/molecules/SignInLogin/index");
|
|
645
645
|
|
|
646
646
|
Object.keys(_index49).forEach(function (key) {
|
|
647
647
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -654,7 +654,7 @@ Object.keys(_index49).forEach(function (key) {
|
|
|
654
654
|
});
|
|
655
655
|
});
|
|
656
656
|
|
|
657
|
-
var _index50 = require("./components/molecules/
|
|
657
|
+
var _index50 = require("./components/molecules/StatusAsignationInfo/index");
|
|
658
658
|
|
|
659
659
|
Object.keys(_index50).forEach(function (key) {
|
|
660
660
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -667,7 +667,7 @@ Object.keys(_index50).forEach(function (key) {
|
|
|
667
667
|
});
|
|
668
668
|
});
|
|
669
669
|
|
|
670
|
-
var _index51 = require("./components/molecules/
|
|
670
|
+
var _index51 = require("./components/molecules/TableHeader/index");
|
|
671
671
|
|
|
672
672
|
Object.keys(_index51).forEach(function (key) {
|
|
673
673
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -680,7 +680,7 @@ Object.keys(_index51).forEach(function (key) {
|
|
|
680
680
|
});
|
|
681
681
|
});
|
|
682
682
|
|
|
683
|
-
var _index52 = require("./components/molecules/
|
|
683
|
+
var _index52 = require("./components/molecules/TableRow/index");
|
|
684
684
|
|
|
685
685
|
Object.keys(_index52).forEach(function (key) {
|
|
686
686
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -693,7 +693,7 @@ Object.keys(_index52).forEach(function (key) {
|
|
|
693
693
|
});
|
|
694
694
|
});
|
|
695
695
|
|
|
696
|
-
var _index53 = require("./components/molecules/
|
|
696
|
+
var _index53 = require("./components/molecules/TabsMenu/index");
|
|
697
697
|
|
|
698
698
|
Object.keys(_index53).forEach(function (key) {
|
|
699
699
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -706,7 +706,7 @@ Object.keys(_index53).forEach(function (key) {
|
|
|
706
706
|
});
|
|
707
707
|
});
|
|
708
708
|
|
|
709
|
-
var _index54 = require("./components/molecules/
|
|
709
|
+
var _index54 = require("./components/molecules/TagAndInput/index");
|
|
710
710
|
|
|
711
711
|
Object.keys(_index54).forEach(function (key) {
|
|
712
712
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -719,7 +719,7 @@ Object.keys(_index54).forEach(function (key) {
|
|
|
719
719
|
});
|
|
720
720
|
});
|
|
721
721
|
|
|
722
|
-
var _index55 = require("./components/molecules/
|
|
722
|
+
var _index55 = require("./components/molecules/VerificationCodeResetPasswordLogin/index");
|
|
723
723
|
|
|
724
724
|
Object.keys(_index55).forEach(function (key) {
|
|
725
725
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -732,7 +732,7 @@ Object.keys(_index55).forEach(function (key) {
|
|
|
732
732
|
});
|
|
733
733
|
});
|
|
734
734
|
|
|
735
|
-
var _index56 = require("./components/molecules/
|
|
735
|
+
var _index56 = require("./components/molecules/RetailerSelector/index");
|
|
736
736
|
|
|
737
737
|
Object.keys(_index56).forEach(function (key) {
|
|
738
738
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -745,7 +745,7 @@ Object.keys(_index56).forEach(function (key) {
|
|
|
745
745
|
});
|
|
746
746
|
});
|
|
747
747
|
|
|
748
|
-
var _index57 = require("./components/molecules/
|
|
748
|
+
var _index57 = require("./components/molecules/CustomSelect/index");
|
|
749
749
|
|
|
750
750
|
Object.keys(_index57).forEach(function (key) {
|
|
751
751
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -758,7 +758,7 @@ Object.keys(_index57).forEach(function (key) {
|
|
|
758
758
|
});
|
|
759
759
|
});
|
|
760
760
|
|
|
761
|
-
var _index58 = require("./components/molecules/
|
|
761
|
+
var _index58 = require("./components/molecules/ButtonDownloadFile/index");
|
|
762
762
|
|
|
763
763
|
Object.keys(_index58).forEach(function (key) {
|
|
764
764
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -771,7 +771,7 @@ Object.keys(_index58).forEach(function (key) {
|
|
|
771
771
|
});
|
|
772
772
|
});
|
|
773
773
|
|
|
774
|
-
var _index59 = require("./components/molecules/
|
|
774
|
+
var _index59 = require("./components/molecules/ImageTooltip/index");
|
|
775
775
|
|
|
776
776
|
Object.keys(_index59).forEach(function (key) {
|
|
777
777
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -784,7 +784,7 @@ Object.keys(_index59).forEach(function (key) {
|
|
|
784
784
|
});
|
|
785
785
|
});
|
|
786
786
|
|
|
787
|
-
var _index60 = require("./components/molecules/
|
|
787
|
+
var _index60 = require("./components/molecules/SelectV2/index");
|
|
788
788
|
|
|
789
789
|
Object.keys(_index60).forEach(function (key) {
|
|
790
790
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -797,7 +797,7 @@ Object.keys(_index60).forEach(function (key) {
|
|
|
797
797
|
});
|
|
798
798
|
});
|
|
799
799
|
|
|
800
|
-
var _index61 = require("./components/molecules/
|
|
800
|
+
var _index61 = require("./components/molecules/Dropdown/index");
|
|
801
801
|
|
|
802
802
|
Object.keys(_index61).forEach(function (key) {
|
|
803
803
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -810,7 +810,7 @@ Object.keys(_index61).forEach(function (key) {
|
|
|
810
810
|
});
|
|
811
811
|
});
|
|
812
812
|
|
|
813
|
-
var _index62 = require("./components/
|
|
813
|
+
var _index62 = require("./components/organisms/ChangePassword/index");
|
|
814
814
|
|
|
815
815
|
Object.keys(_index62).forEach(function (key) {
|
|
816
816
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -823,7 +823,7 @@ Object.keys(_index62).forEach(function (key) {
|
|
|
823
823
|
});
|
|
824
824
|
});
|
|
825
825
|
|
|
826
|
-
var _index63 = require("./components/
|
|
826
|
+
var _index63 = require("./components/organisms/Fullplan/index");
|
|
827
827
|
|
|
828
828
|
Object.keys(_index63).forEach(function (key) {
|
|
829
829
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -836,7 +836,7 @@ Object.keys(_index63).forEach(function (key) {
|
|
|
836
836
|
});
|
|
837
837
|
});
|
|
838
838
|
|
|
839
|
-
var _index64 = require("./components/
|
|
839
|
+
var _index64 = require("./components/organisms/FullProductNameHeader/index");
|
|
840
840
|
|
|
841
841
|
Object.keys(_index64).forEach(function (key) {
|
|
842
842
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -849,7 +849,7 @@ Object.keys(_index64).forEach(function (key) {
|
|
|
849
849
|
});
|
|
850
850
|
});
|
|
851
851
|
|
|
852
|
-
var _index65 = require("./components/
|
|
852
|
+
var _index65 = require("./components/organisms/FullTabsMenu/index");
|
|
853
853
|
|
|
854
854
|
Object.keys(_index65).forEach(function (key) {
|
|
855
855
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -862,7 +862,7 @@ Object.keys(_index65).forEach(function (key) {
|
|
|
862
862
|
});
|
|
863
863
|
});
|
|
864
864
|
|
|
865
|
-
var _index66 = require("./components/
|
|
865
|
+
var _index66 = require("./components/organisms/ImageDataTable/index");
|
|
866
866
|
|
|
867
867
|
Object.keys(_index66).forEach(function (key) {
|
|
868
868
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -875,7 +875,7 @@ Object.keys(_index66).forEach(function (key) {
|
|
|
875
875
|
});
|
|
876
876
|
});
|
|
877
877
|
|
|
878
|
-
var _index67 = require("./components/
|
|
878
|
+
var _index67 = require("./components/organisms/ImagePreviewer/index");
|
|
879
879
|
|
|
880
880
|
Object.keys(_index67).forEach(function (key) {
|
|
881
881
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -888,7 +888,7 @@ Object.keys(_index67).forEach(function (key) {
|
|
|
888
888
|
});
|
|
889
889
|
});
|
|
890
890
|
|
|
891
|
-
var _index68 = require("./components/
|
|
891
|
+
var _index68 = require("./components/organisms/ImagesGroup/index");
|
|
892
892
|
|
|
893
893
|
Object.keys(_index68).forEach(function (key) {
|
|
894
894
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -901,7 +901,7 @@ Object.keys(_index68).forEach(function (key) {
|
|
|
901
901
|
});
|
|
902
902
|
});
|
|
903
903
|
|
|
904
|
-
var _index69 = require("./components/
|
|
904
|
+
var _index69 = require("./components/organisms/InputGroup/index");
|
|
905
905
|
|
|
906
906
|
Object.keys(_index69).forEach(function (key) {
|
|
907
907
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -914,7 +914,7 @@ Object.keys(_index69).forEach(function (key) {
|
|
|
914
914
|
});
|
|
915
915
|
});
|
|
916
916
|
|
|
917
|
-
var _index70 = require("./components/organisms/
|
|
917
|
+
var _index70 = require("./components/organisms/ProductImageModal/index");
|
|
918
918
|
|
|
919
919
|
Object.keys(_index70).forEach(function (key) {
|
|
920
920
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -927,7 +927,7 @@ Object.keys(_index70).forEach(function (key) {
|
|
|
927
927
|
});
|
|
928
928
|
});
|
|
929
929
|
|
|
930
|
-
var _index71 = require("./components/organisms/
|
|
930
|
+
var _index71 = require("./components/organisms/Chat/index");
|
|
931
931
|
|
|
932
932
|
Object.keys(_index71).forEach(function (key) {
|
|
933
933
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -940,7 +940,7 @@ Object.keys(_index71).forEach(function (key) {
|
|
|
940
940
|
});
|
|
941
941
|
});
|
|
942
942
|
|
|
943
|
-
var _index72 = require("./components/organisms/
|
|
943
|
+
var _index72 = require("./components/organisms/Modal/index");
|
|
944
944
|
|
|
945
945
|
Object.keys(_index72).forEach(function (key) {
|
|
946
946
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -953,7 +953,7 @@ Object.keys(_index72).forEach(function (key) {
|
|
|
953
953
|
});
|
|
954
954
|
});
|
|
955
955
|
|
|
956
|
-
var _index73 = require("./components/organisms/
|
|
956
|
+
var _index73 = require("./components/organisms/OrderDetail/index");
|
|
957
957
|
|
|
958
958
|
Object.keys(_index73).forEach(function (key) {
|
|
959
959
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -966,110 +966,6 @@ Object.keys(_index73).forEach(function (key) {
|
|
|
966
966
|
});
|
|
967
967
|
});
|
|
968
968
|
|
|
969
|
-
var _index74 = require("./components/organisms/ImageDataTable/index");
|
|
970
|
-
|
|
971
|
-
Object.keys(_index74).forEach(function (key) {
|
|
972
|
-
if (key === "default" || key === "__esModule") return;
|
|
973
|
-
if (key in exports && exports[key] === _index74[key]) return;
|
|
974
|
-
Object.defineProperty(exports, key, {
|
|
975
|
-
enumerable: true,
|
|
976
|
-
get: function get() {
|
|
977
|
-
return _index74[key];
|
|
978
|
-
}
|
|
979
|
-
});
|
|
980
|
-
});
|
|
981
|
-
|
|
982
|
-
var _index75 = require("./components/organisms/ImagePreviewer/index");
|
|
983
|
-
|
|
984
|
-
Object.keys(_index75).forEach(function (key) {
|
|
985
|
-
if (key === "default" || key === "__esModule") return;
|
|
986
|
-
if (key in exports && exports[key] === _index75[key]) return;
|
|
987
|
-
Object.defineProperty(exports, key, {
|
|
988
|
-
enumerable: true,
|
|
989
|
-
get: function get() {
|
|
990
|
-
return _index75[key];
|
|
991
|
-
}
|
|
992
|
-
});
|
|
993
|
-
});
|
|
994
|
-
|
|
995
|
-
var _index76 = require("./components/organisms/ImagesGroup/index");
|
|
996
|
-
|
|
997
|
-
Object.keys(_index76).forEach(function (key) {
|
|
998
|
-
if (key === "default" || key === "__esModule") return;
|
|
999
|
-
if (key in exports && exports[key] === _index76[key]) return;
|
|
1000
|
-
Object.defineProperty(exports, key, {
|
|
1001
|
-
enumerable: true,
|
|
1002
|
-
get: function get() {
|
|
1003
|
-
return _index76[key];
|
|
1004
|
-
}
|
|
1005
|
-
});
|
|
1006
|
-
});
|
|
1007
|
-
|
|
1008
|
-
var _index77 = require("./components/organisms/InputGroup/index");
|
|
1009
|
-
|
|
1010
|
-
Object.keys(_index77).forEach(function (key) {
|
|
1011
|
-
if (key === "default" || key === "__esModule") return;
|
|
1012
|
-
if (key in exports && exports[key] === _index77[key]) return;
|
|
1013
|
-
Object.defineProperty(exports, key, {
|
|
1014
|
-
enumerable: true,
|
|
1015
|
-
get: function get() {
|
|
1016
|
-
return _index77[key];
|
|
1017
|
-
}
|
|
1018
|
-
});
|
|
1019
|
-
});
|
|
1020
|
-
|
|
1021
|
-
var _index78 = require("./components/organisms/ProductImageModal/index");
|
|
1022
|
-
|
|
1023
|
-
Object.keys(_index78).forEach(function (key) {
|
|
1024
|
-
if (key === "default" || key === "__esModule") return;
|
|
1025
|
-
if (key in exports && exports[key] === _index78[key]) return;
|
|
1026
|
-
Object.defineProperty(exports, key, {
|
|
1027
|
-
enumerable: true,
|
|
1028
|
-
get: function get() {
|
|
1029
|
-
return _index78[key];
|
|
1030
|
-
}
|
|
1031
|
-
});
|
|
1032
|
-
});
|
|
1033
|
-
|
|
1034
|
-
var _index79 = require("./components/organisms/Chat/index");
|
|
1035
|
-
|
|
1036
|
-
Object.keys(_index79).forEach(function (key) {
|
|
1037
|
-
if (key === "default" || key === "__esModule") return;
|
|
1038
|
-
if (key in exports && exports[key] === _index79[key]) return;
|
|
1039
|
-
Object.defineProperty(exports, key, {
|
|
1040
|
-
enumerable: true,
|
|
1041
|
-
get: function get() {
|
|
1042
|
-
return _index79[key];
|
|
1043
|
-
}
|
|
1044
|
-
});
|
|
1045
|
-
});
|
|
1046
|
-
|
|
1047
|
-
var _index80 = require("./components/organisms/Modal/index");
|
|
1048
|
-
|
|
1049
|
-
Object.keys(_index80).forEach(function (key) {
|
|
1050
|
-
if (key === "default" || key === "__esModule") return;
|
|
1051
|
-
if (key in exports && exports[key] === _index80[key]) return;
|
|
1052
|
-
Object.defineProperty(exports, key, {
|
|
1053
|
-
enumerable: true,
|
|
1054
|
-
get: function get() {
|
|
1055
|
-
return _index80[key];
|
|
1056
|
-
}
|
|
1057
|
-
});
|
|
1058
|
-
});
|
|
1059
|
-
|
|
1060
|
-
var _index81 = require("./components/organisms/OrderDetail/index");
|
|
1061
|
-
|
|
1062
|
-
Object.keys(_index81).forEach(function (key) {
|
|
1063
|
-
if (key === "default" || key === "__esModule") return;
|
|
1064
|
-
if (key in exports && exports[key] === _index81[key]) return;
|
|
1065
|
-
Object.defineProperty(exports, key, {
|
|
1066
|
-
enumerable: true,
|
|
1067
|
-
get: function get() {
|
|
1068
|
-
return _index81[key];
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
1071
|
-
});
|
|
1072
|
-
|
|
1073
969
|
var _RangeCalendar = require("./components/organisms/RangeCalendar");
|
|
1074
970
|
|
|
1075
971
|
Object.keys(_RangeCalendar).forEach(function (key) {
|
|
@@ -1096,32 +992,6 @@ Object.keys(_TableResizable).forEach(function (key) {
|
|
|
1096
992
|
});
|
|
1097
993
|
});
|
|
1098
994
|
|
|
1099
|
-
var _index82 = require("./components/organisms/SideModal/index");
|
|
1100
|
-
|
|
1101
|
-
Object.keys(_index82).forEach(function (key) {
|
|
1102
|
-
if (key === "default" || key === "__esModule") return;
|
|
1103
|
-
if (key in exports && exports[key] === _index82[key]) return;
|
|
1104
|
-
Object.defineProperty(exports, key, {
|
|
1105
|
-
enumerable: true,
|
|
1106
|
-
get: function get() {
|
|
1107
|
-
return _index82[key];
|
|
1108
|
-
}
|
|
1109
|
-
});
|
|
1110
|
-
});
|
|
1111
|
-
|
|
1112
|
-
var _index83 = require("./components/organisms/GridProducts/index");
|
|
1113
|
-
|
|
1114
|
-
Object.keys(_index83).forEach(function (key) {
|
|
1115
|
-
if (key === "default" || key === "__esModule") return;
|
|
1116
|
-
if (key in exports && exports[key] === _index83[key]) return;
|
|
1117
|
-
Object.defineProperty(exports, key, {
|
|
1118
|
-
enumerable: true,
|
|
1119
|
-
get: function get() {
|
|
1120
|
-
return _index83[key];
|
|
1121
|
-
}
|
|
1122
|
-
});
|
|
1123
|
-
});
|
|
1124
|
-
|
|
1125
995
|
var _ChangePasswordLogin = require("./components/pages/ChangePasswordLogin");
|
|
1126
996
|
|
|
1127
997
|
Object.keys(_ChangePasswordLogin).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.94",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@aws-amplify/auth": "^4.5.3",
|
|
6
6
|
"@aws-amplify/datastore": "^3.11.0",
|
|
@@ -16,8 +16,6 @@
|
|
|
16
16
|
"@mui/material": "^5.12.0",
|
|
17
17
|
"@mui/styled-engine-sc": "^5.12.0",
|
|
18
18
|
"@storybook/addon-postcss": "^2.0.0",
|
|
19
|
-
"@stripe/react-stripe-js": "^2.1.1",
|
|
20
|
-
"@stripe/stripe-js": "^1.54.1",
|
|
21
19
|
"@testing-library/jest-dom": "^5.11.4",
|
|
22
20
|
"@testing-library/react": "^11.1.0",
|
|
23
21
|
"@testing-library/user-event": "^12.1.10",
|
|
@@ -30,7 +28,6 @@
|
|
|
30
28
|
"contentoh-components-library": "^21.0.18",
|
|
31
29
|
"draft-js": "^0.11.7",
|
|
32
30
|
"file-saver": "^2.0.5",
|
|
33
|
-
"infinite-react-carousel": "^1.2.11",
|
|
34
31
|
"js-base64": "^3.7.2",
|
|
35
32
|
"moment": "^2.29.4",
|
|
36
33
|
"prop-types": "^15.7.2",
|
|
@@ -2,18 +2,12 @@ import { Container } from "./styles";
|
|
|
2
2
|
import ReactImageFallback from "react-image-fallback";
|
|
3
3
|
import defaultProfile from "../../../assets/images/defaultImages/defaultProfileImage.svg";
|
|
4
4
|
|
|
5
|
-
export const Avatar = ({
|
|
6
|
-
image,
|
|
7
|
-
altText,
|
|
8
|
-
imageType,
|
|
9
|
-
onClick,
|
|
10
|
-
fallbackImage,
|
|
11
|
-
}) => {
|
|
5
|
+
export const Avatar = ({ image, altText, imageType, onClick }) => {
|
|
12
6
|
return (
|
|
13
7
|
<Container className={imageType}>
|
|
14
8
|
<ReactImageFallback
|
|
15
9
|
src={image}
|
|
16
|
-
fallbackImage={
|
|
10
|
+
fallbackImage={defaultProfile}
|
|
17
11
|
alt={altText}
|
|
18
12
|
onClick={onClick}
|
|
19
13
|
/>
|