@salesgenterp/ui-components 0.4.351 → 0.4.353
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/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1085,7 +1085,11 @@ var APIStaticPage = function APIStaticPage(_ref) {
|
|
|
1085
1085
|
if (id || alias) {
|
|
1086
1086
|
return Promise.resolve(API$1({
|
|
1087
1087
|
apiEndPoint: apiEndPoint,
|
|
1088
|
-
url:
|
|
1088
|
+
url: "/ecommerce/staticPage",
|
|
1089
|
+
queryParams: {
|
|
1090
|
+
id: id,
|
|
1091
|
+
alias: alias
|
|
1092
|
+
}
|
|
1089
1093
|
})).then(function (_API) {
|
|
1090
1094
|
_response2 = _API;
|
|
1091
1095
|
});
|
|
@@ -6562,7 +6566,7 @@ var CardRow = function CardRow(_ref) {
|
|
|
6562
6566
|
onClick: function onClick(e) {
|
|
6563
6567
|
e.stopPropagation();
|
|
6564
6568
|
if (loading) return;
|
|
6565
|
-
if ((row === null || row === void 0 ? void 0 : row.availableQuantity) === 0) {
|
|
6569
|
+
if ((row === null || row === void 0 ? void 0 : row.availableQuantity) === 0 || (row === null || row === void 0 ? void 0 : row.quantity) === 1) {
|
|
6566
6570
|
return handleRemoveProduct(row);
|
|
6567
6571
|
}
|
|
6568
6572
|
handleIncrementDecrement('decrement', _extends({}, row, {
|
|
@@ -9005,8 +9009,7 @@ var StaticPageList = function StaticPageList(_ref) {
|
|
|
9005
9009
|
}, /*#__PURE__*/React__default.createElement(TitleContainer$2, null, /*#__PURE__*/React__default.createElement("h2", null, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React__default.createElement("h4", null, item === null || item === void 0 ? void 0 : item.header))));
|
|
9006
9010
|
}) : /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
9007
9011
|
xs: 12,
|
|
9008
|
-
item: true
|
|
9009
|
-
key: i
|
|
9012
|
+
item: true
|
|
9010
9013
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
9011
9014
|
style: {
|
|
9012
9015
|
fontSize: '2rem',
|