@bjsdistribution/dms-client-return 0.0.7 → 0.0.8

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.7",
2
+ "version": "0.0.8",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
package/src/index.tsx CHANGED
@@ -24,8 +24,7 @@ function ReturnClient() {
24
24
  useEffect(() => {
25
25
  if (selectedClient) {
26
26
  const selectedClientString = selectedClient.replace(/\s+/g, '-');
27
- selectedClient;
28
- navigate(`returnclient/return/${selectedClientString}`);
27
+ navigate(`return/${selectedClientString}`);
29
28
  }
30
29
  }, [selectedClient, navigate]);
31
30
 
@@ -35,15 +34,12 @@ function ReturnClient() {
35
34
  <Route path="" element={<ReturnMainTable />} />
36
35
  <Route path="order-return" element={<ReturnAfterTable />} />
37
36
  <Route path="order-return/:id" element={<OrderView />} />
38
- <Route
39
- path="returnclient/return/:selectedClient"
40
- element={<ReturnTable />}
41
- />
37
+ <Route path="return/:selectedClient" element={<ReturnTable />} />
42
38
  <Route
43
39
  path=""
44
40
  element={
45
41
  selectedClient ? (
46
- <Navigate to={`returnclient/return/${selectedClient}`} />
42
+ <Navigate to={`return/${selectedClient}`} />
47
43
  ) : (
48
44
  <ReturnMainTable />
49
45
  )