ecomlab-components-next 0.1.278 → 0.1.280
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/common/utils.js
CHANGED
|
@@ -196,7 +196,7 @@ var fetchArticlesByPortal = exports.fetchArticlesByPortal = function fetchArticl
|
|
|
196
196
|
_ = _params[0];
|
|
197
197
|
filters = _params[1];
|
|
198
198
|
}
|
|
199
|
-
var url = "
|
|
199
|
+
var url = "https://portals.ecomru.ru:4447/get_articles_by_portal";
|
|
200
200
|
var getHeaders = _objectSpread(_objectSpread({}, _headers["default"]), {}, {
|
|
201
201
|
"level-id": PORTAL_ID,
|
|
202
202
|
"language": activeLang === null || activeLang === void 0 ? void 0 : activeLang.toLowerCase(),
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _image = _interopRequireDefault(require("next/image"));
|
|
9
10
|
require("./ButtonBasicV2.scss");
|
|
10
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
12
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -67,10 +68,10 @@ var ButtonBasicV2 = function ButtonBasicV2(_ref) {
|
|
|
67
68
|
size: '20'
|
|
68
69
|
})) : icon ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
70
|
className: "btn-basic-v2__with-icon"
|
|
70
|
-
}, icon && positionIcon == 'left' && /*#__PURE__*/_react["default"].createElement("
|
|
71
|
+
}, icon && positionIcon == 'left' && /*#__PURE__*/_react["default"].createElement(_image["default"], {
|
|
71
72
|
src: icon,
|
|
72
73
|
alt: "icon"
|
|
73
|
-
}), text, icon && positionIcon == 'right' && /*#__PURE__*/_react["default"].createElement("
|
|
74
|
+
}), text, icon && positionIcon == 'right' && /*#__PURE__*/_react["default"].createElement(_image["default"], {
|
|
74
75
|
src: icon,
|
|
75
76
|
alt: "icon"
|
|
76
77
|
})) : text);
|