@bjsdistribution/dms-client-return 0.0.4 → 0.0.5

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.4",
2
+ "version": "0.0.5",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -101,7 +101,7 @@ export const FilterIconConatiner = styled.div``;
101
101
  export const StyledFiter = styled.div`
102
102
  display: flex;
103
103
  justify-content: space-between;
104
- align-items: flex-start;
104
+ align-items: center;
105
105
  `;
106
106
  export const StyledFIlterELements = styled.div`
107
107
  display: flex;
package/src/index.tsx CHANGED
@@ -23,7 +23,9 @@ function ReturnClient() {
23
23
 
24
24
  useEffect(() => {
25
25
  if (selectedClient) {
26
- navigate(`/return/${selectedClient}`);
26
+ const selectedClientString = selectedClient.replace(/\s+/g, '-');
27
+ selectedClient
28
+ navigate(`/return/${selectedClientString}`);
27
29
  }
28
30
  }, [selectedClient, navigate]);
29
31