@bjsdistribution/dms-client-return 0.0.5 → 0.0.7

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