@salesgenterp/ui-components 0.4.325 → 0.4.327

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
@@ -2437,7 +2437,6 @@ var PaymentModal = function PaymentModal(_ref) {
2437
2437
  name: "authorizeDotNetCard",
2438
2438
  required: true,
2439
2439
  control: control,
2440
- fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor,
2441
2440
  options: customerCreditCards === null || customerCreditCards === void 0 ? void 0 : (_customerCreditCards$4 = customerCreditCards.profile) === null || _customerCreditCards$4 === void 0 ? void 0 : (_customerCreditCards$5 = _customerCreditCards$4.paymentProfiles) === null || _customerCreditCards$5 === void 0 ? void 0 : _customerCreditCards$5.map(function (profile) {
2442
2441
  var _profile$payment, _profile$payment$cred, _profile$payment2, _profile$payment2$cre, _profile$payment2$cre2, _profile$payment2$cre3;
2443
2442
  return {
@@ -4580,7 +4579,7 @@ var AccountDetails = function AccountDetails(_ref) {
4580
4579
  React.useEffect(function () {
4581
4580
  isMobile ? setOpen(false) : setOpen(true);
4582
4581
  }, [isMobile]);
4583
- var renderListItemComponent = function renderListItemComponent(path) {
4582
+ var renderListItemComponent = function renderListItemComponent(tabValue) {
4584
4583
  try {
4585
4584
  var key = tabValue;
4586
4585
  switch (key) {
@@ -4749,7 +4748,7 @@ var AccountDetails = function AccountDetails(_ref) {
4749
4748
  }, isNightMode ? /*#__PURE__*/React__default.createElement(md.MdDarkMode, null) : /*#__PURE__*/React__default.createElement(md.MdOutlineDarkMode, null)))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(DataLoader, {
4750
4749
  loading: dataLoading,
4751
4750
  skeleton: true
4752
- }, apiEndPoint && token && renderListItemComponent())))))));
4751
+ }, apiEndPoint && token && renderListItemComponent(tabValue))))))));
4753
4752
  };
4754
4753
  var Root$5 = styled__default(material.Box)(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n // background-image: url(", ");\n // background-position: center;\n // background-repeat: no-repeat;\n // background-size: cover;\n padding: 1.4rem;\n background-color: ", ";\n"])), function (props) {
4755
4754
  var _props$theme;
@@ -4805,7 +4804,8 @@ var TypographyContainer$7 = styled__default(material.Typography)(_templateObject
4805
4804
  var _templateObject$o, _templateObject2$e, _templateObject3$9;
4806
4805
  var LandingCarousel = function LandingCarousel(_ref) {
4807
4806
  var _brandData;
4808
- var brandList = _ref.brandList;
4807
+ var brandList = _ref.brandList,
4808
+ noImgUrl = _ref.noImgUrl;
4809
4809
  var brandListData = (brandList === null || brandList === void 0 ? void 0 : brandList.content) || [];
4810
4810
  var spaceBetweenCol = 4;
4811
4811
  var brandData = function brandData() {
@@ -4877,7 +4877,7 @@ var LandingCarousel = function LandingCarousel(_ref) {
4877
4877
  height: 'auto'
4878
4878
  }
4879
4879
  }) : /*#__PURE__*/React__default.createElement(Image, {
4880
- src: brand !== null && brand !== void 0 && brand.url && (brand === null || brand === void 0 ? void 0 : brand.url) !== 'null' ? brand === null || brand === void 0 ? void 0 : brand.url : noImgAvailable$1,
4880
+ src: brand !== null && brand !== void 0 && brand.url && (brand === null || brand === void 0 ? void 0 : brand.url) !== 'null' ? brand === null || brand === void 0 ? void 0 : brand.url : noImgUrl || noImgAvailable$1,
4881
4881
  alt: "image"
4882
4882
  })));
4883
4883
  })));
@@ -4899,7 +4899,8 @@ var BrandList = function BrandList(_ref) {
4899
4899
  primaryColor: '#D2122E'
4900
4900
  } : _ref$colors,
4901
4901
  _ref$size = _ref.size,
4902
- size = _ref$size === void 0 ? 20 : _ref$size;
4902
+ size = _ref$size === void 0 ? 20 : _ref$size,
4903
+ noImgUrl = _ref.noImgUrl;
4903
4904
  var _useState = React.useState(),
4904
4905
  brandList = _useState[0],
4905
4906
  setBrandList = _useState[1];
@@ -4923,7 +4924,8 @@ var BrandList = function BrandList(_ref) {
4923
4924
  return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
4924
4925
  theme: colors
4925
4926
  }, /*#__PURE__*/React__default.createElement(Root$7, null, /*#__PURE__*/React__default.createElement(material.CssBaseline, null), /*#__PURE__*/React__default.createElement(MainContainer$1, null, /*#__PURE__*/React__default.createElement(LandingCarousel, {
4926
- brandList: brandList
4927
+ brandList: brandList,
4928
+ noImgUrl: noImgUrl
4927
4929
  }))));
4928
4930
  };
4929
4931
  var Root$7 = styled__default.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose([""])));