@bjsdistribution/dms-client-return 0.0.60 → 0.0.61

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.60",
2
+ "version": "0.0.61",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -331,6 +331,12 @@ function SelectionFilter() {
331
331
  value={selectedClient}
332
332
  allowClear
333
333
  onClear={handleClear}
334
+ filterOption={(input: any, option: any) =>
335
+ (option?.label ?? '')
336
+ .toLowerCase()
337
+ .includes(input.toLowerCase())
338
+ }
339
+ showSearch
334
340
  />
335
341
  </FilterColumn>
336
342
 
@@ -12,7 +12,7 @@ import {
12
12
  CustomDrop,
13
13
  } from '../../return-order-table/return-orders-filters/returnstyles';
14
14
  import LoadIcon from '../../../../assets/icons/LoadIcon';
15
- import { usePrintOptionTOggle } from '../../store/store';
15
+ import { useLoading, usePrintOptionTOggle } from '../../store/store';
16
16
  import { NavLink } from 'react-router-dom';
17
17
  import { displayValueOrNA, formatDate } from '../../shared/utlis';
18
18
  import PrintDropDown from '../../shared/elements/PrintDropDown';
@@ -28,7 +28,7 @@ import Loader from '../../header/loader/Loader';
28
28
  import CaretDownFilledIcon from '../../../../common/CaretDownFilledIcon';
29
29
  import SortIcon from '../../../../common/SortIcon';
30
30
 
31
- const OrderTable = ({ loadingskeleton }: any) => {
31
+ const OrderTable = () => {
32
32
  // const [, setSelectedReturnOrder] = useSelectedOrders();
33
33
  // const [selectAll, setSelectAll] = useState(false);
34
34
  const dropdownRefParent = useRef<HTMLDivElement>(null);
@@ -40,6 +40,7 @@ const OrderTable = ({ loadingskeleton }: any) => {
40
40
  const [assignPayload, setAssignPayload] = useAssignPayload();
41
41
  const [, setAssign] = useState<boolean>(false);
42
42
  const [, setCallAPi] = useCallApiAgain();
43
+ const [loading] = useLoading();
43
44
 
44
45
  //sorting
45
46
  const [sortConfig, setSortConfig] = useState<{
@@ -254,7 +255,7 @@ const OrderTable = ({ loadingskeleton }: any) => {
254
255
  </tr>
255
256
  </thead>
256
257
  <tbody>
257
- {loadingskeleton ? (
258
+ {loading ? (
258
259
  <tr>
259
260
  <td colSpan={16}>
260
261
  <Skeleton active />