@bjsdistribution/dms-client-return 0.1.34-prod → 0.1.35-prod

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.
@@ -1720,14 +1720,16 @@ var ReturnStatus = function ReturnStatus() {
1720
1720
  status: 'outstanding_return',
1721
1721
  count: count == null ? void 0 : count.outstanding_count,
1722
1722
  label: 'Outstanding Return'
1723
- }, {
1723
+ },
1724
+ // {
1725
+ // id: 2,
1726
+ // icon: 'scheduled_for_return',
1727
+ // status: 'scheduled_for_return',
1728
+ // count: count?.scheduled_count,
1729
+ // label: 'Scheduled For Return',
1730
+ // },
1731
+ {
1724
1732
  id: 2,
1725
- icon: 'scheduled_for_return',
1726
- status: 'scheduled_for_return',
1727
- count: count == null ? void 0 : count.scheduled_count,
1728
- label: 'Scheduled For Return'
1729
- }, {
1730
- id: 3,
1731
1733
  icon: 'return_completed',
1732
1734
  status: 'return_completed',
1733
1735
  count: count == null ? void 0 : count.completed_count,
@@ -18168,7 +18170,7 @@ var OutstandingTable = function OutstandingTable() {
18168
18170
  if (clientPortal && debouncedSearchText === '') {
18169
18171
  fetchData();
18170
18172
  }
18171
- }, [JSON.stringify(modifiedFilters), debouncedSearchText]);
18173
+ }, [JSON.stringify(modifiedFilters), debouncedSearchText, pagination]);
18172
18174
  useEffect(function () {
18173
18175
  setLoading(returnDataLoad);
18174
18176
  if (fetchedOrderData && fetchedOrderData != null && fetchedOrderData.data) {
@@ -18591,14 +18593,14 @@ var ConfirmedMain = function ConfirmedMain() {
18591
18593
  state = _useAtom2[0];
18592
18594
  var filters = state['x-filters'];
18593
18595
  var _UsePaginationReturnD = UsePaginationReturnData(),
18594
- paginationObj = _UsePaginationReturnD[0];
18596
+ paginationObj = _UsePaginationReturnD[0],
18597
+ setReturnPaginationObject = _UsePaginationReturnD[1];
18595
18598
  var _useState = useState(1),
18596
18599
  setCurrentPage = _useState[1];
18597
18600
  var _useItemsPerReturnPag = useItemsPerReturnPage(),
18598
18601
  itemsPerPage = _useItemsPerReturnPag[0],
18599
18602
  setItemsPerPage = _useItemsPerReturnPag[1];
18600
- var _UsePaginationData = UsePaginationData(),
18601
- setPaginationObject = _UsePaginationData[1];
18603
+ // const [, setPaginationObject] = UsePaginationData();
18602
18604
  var page = paginationObj.page,
18603
18605
  total = paginationObj.total;
18604
18606
  var _useSearchAfterText = useSearchAfterText(),
@@ -18626,7 +18628,7 @@ var ConfirmedMain = function ConfirmedMain() {
18626
18628
  if (clientPortal && debouncedSearchText === '') {
18627
18629
  fetchData();
18628
18630
  }
18629
- }, [JSON.stringify(filters), debouncedSearchText]);
18631
+ }, [JSON.stringify(filters), debouncedSearchText, pagination]);
18630
18632
  useEffect(function () {
18631
18633
  setLoading(loading);
18632
18634
  if (fetchedReturnOrderData != null && fetchedReturnOrderData.data) {
@@ -18636,7 +18638,7 @@ var ConfirmedMain = function ConfirmedMain() {
18636
18638
  var _JSON$parse = JSON.parse(paginationData),
18637
18639
  count = _JSON$parse.count,
18638
18640
  rest = _objectWithoutPropertiesLoose(_JSON$parse, _excluded$a);
18639
- setPaginationObject(rest);
18641
+ setReturnPaginationObject(rest);
18640
18642
  } catch (error) {
18641
18643
  notification.error({
18642
18644
  message: 'Error',