@salesgenterp/ui-components 0.4.404 → 0.4.406

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 CHANGED
@@ -7613,14 +7613,12 @@ var HomeBanner = function HomeBanner(_ref) {
7613
7613
  categoryId = _ref.categoryId,
7614
7614
  brandId = _ref.brandId,
7615
7615
  extra = _ref.extra;
7616
- var _useState = React.useState(businessTypeId || 1),
7617
- businessId = _useState[0];
7618
- var _useState2 = React.useState([]),
7619
- sliderTypes = _useState2[0],
7620
- setSliderTypes = _useState2[1];
7621
- var _useState3 = React.useState(false),
7622
- loading = _useState3[0],
7623
- setLoading = _useState3[1];
7616
+ var _useState = React.useState([]),
7617
+ sliderTypes = _useState[0],
7618
+ setSliderTypes = _useState[1];
7619
+ var _useState2 = React.useState(false),
7620
+ loading = _useState2[0],
7621
+ setLoading = _useState2[1];
7624
7622
  React.useEffect(function () {
7625
7623
  try {
7626
7624
  clearTimeout(inDebounce);
@@ -7741,11 +7739,11 @@ var HomeBanner = function HomeBanner(_ref) {
7741
7739
  }, /*#__PURE__*/React__default.createElement(AsyncDataLoadComponent, {
7742
7740
  skeletonHeight: 220,
7743
7741
  apiEndPoint: apiEndPoint,
7744
- triggerChange: businessId,
7742
+ triggerChange: businessTypeId,
7745
7743
  asyncService: function asyncService() {
7746
7744
  return geSliderImages({
7747
7745
  sliderTypeId: sliderType === null || sliderType === void 0 ? void 0 : sliderType.id,
7748
- businessTypeId: businessId,
7746
+ businessTypeId: businessTypeId,
7749
7747
  categoryId: categoryId,
7750
7748
  brandId: brandId
7751
7749
  });