@matchain/matchid-sdk-react 0.1.37-alpha.4 → 0.1.37-alpha.6

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.
Files changed (32) hide show
  1. package/dist/assets/icon/index.d.mts +1 -1
  2. package/dist/assets/icon/index.d.ts +1 -1
  3. package/dist/{chunk-YCRZLAOS.mjs → chunk-FLEEMUIJ.mjs} +7 -4
  4. package/dist/{chunk-YCRZLAOS.mjs.map → chunk-FLEEMUIJ.mjs.map} +1 -1
  5. package/dist/{chunk-MZB76VOE.mjs → chunk-OZ3WBUHE.mjs} +2 -2
  6. package/dist/components/index.d.mts +2 -2
  7. package/dist/components/index.d.ts +2 -2
  8. package/dist/components/index.js.map +1 -1
  9. package/dist/components/index.mjs +1 -1
  10. package/dist/hooks/api/index.d.mts +2 -2
  11. package/dist/hooks/api/index.d.ts +2 -2
  12. package/dist/hooks/api/index.js.map +1 -1
  13. package/dist/hooks/api/index.mjs +2 -2
  14. package/dist/hooks/index.d.mts +2 -2
  15. package/dist/hooks/index.d.ts +2 -2
  16. package/dist/hooks/index.js.map +1 -1
  17. package/dist/hooks/index.mjs +1 -1
  18. package/dist/{index-BFn-HCRJ.d.ts → index-BKdqrCum.d.ts} +1 -1
  19. package/dist/{index-DUCRzr-P.d.ts → index-BPveUnst.d.ts} +1 -1
  20. package/dist/{index-CfipOX1C.d.ts → index-DTCAzQvB.d.ts} +1 -1
  21. package/dist/{index-BTTka3Uo.d.mts → index-Dm5o2w2J.d.mts} +1 -1
  22. package/dist/{index-BdeWio3u.d.mts → index-DqWn6VEO.d.mts} +1 -1
  23. package/dist/{index-Dq1vYJ0E.d.mts → index-dJi5ka2c.d.mts} +1 -1
  24. package/dist/index.d.mts +4 -4
  25. package/dist/index.d.ts +4 -4
  26. package/dist/index.js +6 -3
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +2 -2
  29. package/dist/{types.d-Cqt8ifXa.d.mts → types.d-IS3DBl3p.d.mts} +1 -1
  30. package/dist/{types.d-Cqt8ifXa.d.ts → types.d-IS3DBl3p.d.ts} +1 -1
  31. package/package.json +6 -11
  32. /package/dist/{chunk-MZB76VOE.mjs.map → chunk-OZ3WBUHE.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { CSSProperties } from 'react';
3
- import { l as IconProps$1 } from '../../types.d-Cqt8ifXa.mjs';
3
+ import { l as IconProps$1 } from '../../types.d-IS3DBl3p.mjs';
4
4
 
5
5
  declare function BackIcon({ color, size, className, style }: {
6
6
  color?: string;
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React, { CSSProperties } from 'react';
3
- import { l as IconProps$1 } from '../../types.d-Cqt8ifXa.js';
3
+ import { l as IconProps$1 } from '../../types.d-IS3DBl3p.js';
4
4
 
5
5
  declare function BackIcon({ color, size, className, style }: {
6
6
  color?: string;
@@ -2395,11 +2395,14 @@ function CEXBindModal({
2395
2395
  type: "cex_" + type
2396
2396
  });
2397
2397
  onClose();
2398
+ } else {
2399
+ throw new Error(res.message);
2398
2400
  }
2399
- setLoading(false);
2400
2401
  } catch (error2) {
2401
2402
  console.error(error2);
2402
2403
  setError(error2.message);
2404
+ } finally {
2405
+ setLoading(false);
2403
2406
  }
2404
2407
  };
2405
2408
  return /* @__PURE__ */ jsx23(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
@@ -2425,7 +2428,7 @@ function CEXBindModal({
2425
2428
  ) }),
2426
2429
  /* @__PURE__ */ jsx23(Field, { label: intl.formatMessage({
2427
2430
  id: "CEXBindApiSecretKey"
2428
- }), children: /* @__PURE__ */ jsx23(
2431
+ }), error: type != "OKX" && error, children: /* @__PURE__ */ jsx23(
2429
2432
  Input,
2430
2433
  {
2431
2434
  value: secret,
@@ -2433,7 +2436,7 @@ function CEXBindModal({
2433
2436
  placeholder: "**** **** ****"
2434
2437
  }
2435
2438
  ) }),
2436
- type == "OKX" && /* @__PURE__ */ jsx23(Field, { label: intl.formatMessage({
2439
+ type == "OKX" && /* @__PURE__ */ jsx23(Field, { error, label: intl.formatMessage({
2437
2440
  id: "CEXBindApiPassphrase"
2438
2441
  }), children: /* @__PURE__ */ jsx23(
2439
2442
  Input,
@@ -3706,4 +3709,4 @@ export {
3706
3709
  MatchProvider,
3707
3710
  useMatch
3708
3711
  };
3709
- //# sourceMappingURL=chunk-YCRZLAOS.mjs.map
3712
+ //# sourceMappingURL=chunk-FLEEMUIJ.mjs.map