namirasoft-account-react 1.5.6 → 1.5.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/dist/UseParams.js CHANGED
@@ -1,11 +1,8 @@
1
1
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect } from 'react';
3
- import { useLocation, useParams } from 'react-router-dom';
3
+ import { useParams } from 'react-router-dom';
4
4
  export function UseParams(props) {
5
5
  let p = useParams();
6
- let l = useLocation();
7
- console.log({ l });
8
- debugger;
9
6
  useEffect(() => {
10
7
  props.onLoaded(p);
11
8
  }, [p]);
@@ -1 +1 @@
1
- {"version":3,"file":"UseParams.js","sourceRoot":"","sources":["../src/UseParams.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAO1D,MAAM,UAAU,SAAS,CAAC,KAAqB;IAE3C,IAAI,CAAC,GAAG,SAAS,EAAE,CAAC;IACpB,IAAI,CAAC,GAAG,WAAW,EAAE,CAAC;IACtB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACnB,QAAQ,CAAA;IACR,SAAS,CAAC,GAAG,EAAE;QAEX,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACR,OAAO,mBAAK,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"UseParams.js","sourceRoot":"","sources":["../src/UseParams.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAO7C,MAAM,UAAU,SAAS,CAAC,KAAqB;IAE3C,IAAI,CAAC,GAAG,SAAS,EAAE,CAAC;IACpB,SAAS,CAAC,GAAG,EAAE;QAEX,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACR,OAAO,mBAAK,CAAC;AACjB,CAAC"}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.5.6",
11
+ "version": "1.5.7",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
package/src/UseParams.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from 'react';
2
- import { useLocation, useParams } from 'react-router-dom';
2
+ import { useParams } from 'react-router-dom';
3
3
 
4
4
  export interface UseParamsProps
5
5
  {
@@ -9,9 +9,6 @@ export interface UseParamsProps
9
9
  export function UseParams(props: UseParamsProps)
10
10
  {
11
11
  let p = useParams();
12
- let l = useLocation();
13
- console.log({ l });
14
- debugger
15
12
  useEffect(() =>
16
13
  {
17
14
  props.onLoaded(p);