@bjsdistribution/dms-client-return 0.0.50 → 0.0.52

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.50",
2
+ "version": "0.0.52",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -52,7 +52,7 @@ function SelectionFilter() {
52
52
  const urlActiontype = searchParams.get('type');
53
53
 
54
54
  const selectedCustomer = customers?.find(
55
- (customer: any) => customer?.customer_id.toString() === urlCustomerId
55
+ (customer: any) => customer?.customer_id?.toString() === urlCustomerId
56
56
  );
57
57
 
58
58
  const accountNumber = selectedCustomer?.account_number;
@@ -235,6 +235,10 @@ export const StyledTable = styled.table`
235
235
  /* min-width: 1600px; */
236
236
  thead {
237
237
  white-space: nowrap;
238
+ position: sticky;
239
+ top: 0px;
240
+ z-index: 1;
241
+ background: #fff;
238
242
  tr {
239
243
  border-radius: 40px;
240
244
  border-spacing: 0 10px;
@@ -285,6 +289,8 @@ export const StyledTable = styled.table`
285
289
  }
286
290
  }
287
291
  tbody {
292
+ max-height: 400px;
293
+ overflow-y: auto;
288
294
  tr {
289
295
  td {
290
296
  color: #3a3630;
@@ -46,6 +46,10 @@ export const StyledTable = styled.table`
46
46
  width: 100%;
47
47
  /* min-width: 1600px; */
48
48
  thead {
49
+ position: sticky;
50
+ top: 0px;
51
+ z-index: 1;
52
+ background: #fff;
49
53
  tr {
50
54
  border-radius: 40px;
51
55
  border-spacing: 0 10px;
@@ -88,6 +92,8 @@ export const StyledTable = styled.table`
88
92
  }
89
93
  }
90
94
  tbody {
95
+ max-height: 400px;
96
+ overflow-y: auto;
91
97
  tr {
92
98
  td {
93
99
  color: #3a3630;
package/src/index.tsx CHANGED
@@ -43,6 +43,7 @@ function ReturnClient() {
43
43
  return parts;
44
44
  };
45
45
  const paths = splitPath(location.pathname);
46
+
46
47
  useEffect(() => {
47
48
  if (paths[paths.length - 1] === 'order/return') {
48
49
  setActionTypeOptions([]);