@salesgenterp/ui-components 0.4.53 → 0.4.55

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.
@@ -1,5 +1,5 @@
1
1
  import { Stack, Tooltip, TableCell, TableContainer, TableRow, Checkbox, Grid, TextField, InputAdornment, MenuItem, CircularProgress, Table as Table$1, TableBody as TableBody$1, Stepper, Step, StepLabel, StepContent } from '@mui/material';
2
- import React__default, { useState, useEffect as useEffect$1, createElement } from 'react';
2
+ import React__default, { useState, useEffect, createElement } from 'react';
3
3
  import { GrClose, GrRadialSelected } from 'react-icons/gr';
4
4
  import 'react-icons/gi';
5
5
  import { BsCartX, BsCreditCard } from 'react-icons/bs';
@@ -1588,7 +1588,7 @@ function EnhancedTable(_ref) {
1588
1588
  return setCartArray(newArray);
1589
1589
  };
1590
1590
 
1591
- useEffect$1(function () {
1591
+ useEffect(function () {
1592
1592
  Sort();
1593
1593
  }, [order, orderBy]);
1594
1594
 
@@ -1631,7 +1631,7 @@ function EnhancedTable(_ref) {
1631
1631
  return selected.includes(name);
1632
1632
  };
1633
1633
 
1634
- useEffect$1(function () {
1634
+ useEffect(function () {
1635
1635
  setCartArray(cartList);
1636
1636
  }, [cartData]);
1637
1637
  console.log(selected);
@@ -2500,6 +2500,11 @@ var Step1 = function Step1(_ref) {
2500
2500
  name: 'Add billing Address',
2501
2501
  id: 99999999
2502
2502
  }]);
2503
+ } else {
2504
+ addressList = [{
2505
+ name: 'Add billing Address',
2506
+ id: 99999999
2507
+ }];
2503
2508
  }
2504
2509
 
2505
2510
  var _useState2 = useState((_addressList$ = addressList[0]) === null || _addressList$ === void 0 ? void 0 : _addressList$.id),
@@ -2526,7 +2531,7 @@ var Step1 = function Step1(_ref) {
2526
2531
  handleNext();
2527
2532
  };
2528
2533
 
2529
- useEffect$1(function () {
2534
+ useEffect(function () {
2530
2535
  setSelectedCountry(selectedCountry);
2531
2536
  }, [selectedCountry]);
2532
2537
  return /*#__PURE__*/React__default.createElement(StepContainer, null, /*#__PURE__*/React__default.createElement(StepsHeaderComponent, {
@@ -2641,9 +2646,14 @@ var Step2 = function Step2(_ref) {
2641
2646
 
2642
2647
  if (selectedStores !== null && selectedStores !== void 0 && selectedStores.customerStoreAddressList) {
2643
2648
  addressList = [].concat(selectedStores === null || selectedStores === void 0 ? void 0 : selectedStores.customerStoreAddressList, [{
2644
- name: 'Add billing Address',
2649
+ name: 'Add Address',
2645
2650
  id: 99999999
2646
2651
  }]);
2652
+ } else {
2653
+ addressList = [{
2654
+ name: 'Add Address',
2655
+ id: 99999999
2656
+ }];
2647
2657
  }
2648
2658
 
2649
2659
  var _useState = useState((_addressList$ = addressList[0]) === null || _addressList$ === void 0 ? void 0 : _addressList$.id),
@@ -3382,7 +3392,7 @@ function useWindowSize() {
3382
3392
  windowSize = _useState[0],
3383
3393
  setWindowSize = _useState[1];
3384
3394
 
3385
- useEffect$1(function () {
3395
+ useEffect(function () {
3386
3396
  var onWindowResize = function onWindowResize() {
3387
3397
  setWindowSize({
3388
3398
  width: window.innerWidth,
@@ -3438,7 +3448,7 @@ function useGridSize() {
3438
3448
  layout = _useState[0],
3439
3449
  setLayout = _useState[1];
3440
3450
 
3441
- useEffect$1(function () {
3451
+ useEffect(function () {
3442
3452
  setLayout(getBreakpoint(windowSize));
3443
3453
  }, [windowSize]);
3444
3454
  return layout;