@bjsdistribution/dms-client-return 0.0.69 → 0.0.70

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.
@@ -2830,11 +2830,6 @@ var OrderTable = function OrderTable() {
2830
2830
  color: '#845ADF',
2831
2831
  background: 'rgba(132, 90, 223, 0.15)'
2832
2832
  };
2833
- case 'Awaiting':
2834
- return {
2835
- color: '#845ADF',
2836
- background: 'rgba(132, 90, 223, 0.15)'
2837
- };
2838
2833
  case 'Completed':
2839
2834
  return {
2840
2835
  color: '#1F9254',
@@ -2953,7 +2948,6 @@ var OrderTable = function OrderTable() {
2953
2948
  OO: 'On Hold',
2954
2949
  SC: 'Sub-Contracted',
2955
2950
  'awaiting route': 'Awaiting route',
2956
- 'awaiting confirmation': 'Awaiting',
2957
2951
  completed: 'completed',
2958
2952
  outstanding: 'Outstanding',
2959
2953
  routed: 'Routed'
@@ -11906,7 +11900,7 @@ function ReturnClient() {
11906
11900
  };
11907
11901
  var paths = splitPath(location.pathname);
11908
11902
  useEffect(function () {
11909
- if (paths.join('/') === 'orders/view/return') {
11903
+ if (paths[paths.length - 1] === 'orders/view/return') {
11910
11904
  setActionTypeOptions([]);
11911
11905
  setLocationOptions([]);
11912
11906
  setSelectedClient(null);
@@ -11914,6 +11908,11 @@ function ReturnClient() {
11914
11908
  setSelectedLocationValue(null);
11915
11909
  }
11916
11910
  }, [location.pathname, searchParams]);
11911
+ // useEffect(() => {
11912
+ // if (selectedClientId) {
11913
+ // navigate(`filter/${selectedClientId}`);
11914
+ // }
11915
+ // }, [selectedClientId]);
11917
11916
  //API for client data
11918
11917
  var _useApiHook = useApiHook({
11919
11918
  endpoint: "/return_orders/customers/",