@matchain/matchid-sdk-react 0.1.56-alpha.13 → 0.1.56-alpha.14

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.
@@ -11,7 +11,7 @@ import {
11
11
  useUserInfo,
12
12
  verifyPohApi,
13
13
  wallet_exports
14
- } from "./chunk-RPATABCS.mjs";
14
+ } from "./chunk-EMSBFHPM.mjs";
15
15
  import {
16
16
  __export
17
17
  } from "./chunk-J5LGTIGS.mjs";
@@ -94,4 +94,4 @@ export {
94
94
  user_exports,
95
95
  api_exports
96
96
  };
97
- //# sourceMappingURL=chunk-7K4E64WH.mjs.map
97
+ //# sourceMappingURL=chunk-SEACJPL6.mjs.map
@@ -3822,6 +3822,16 @@ function EmailModal({
3822
3822
  setEmailVal("");
3823
3823
  }
3824
3824
  }, [isOpen]);
3825
+ const verifySuccess = () => {
3826
+ console.log("verifySuccess", onLogin);
3827
+ if (onLogin) {
3828
+ console.log("verifySuccess to login");
3829
+ onLogin();
3830
+ } else {
3831
+ console.log("verifySuccess to close");
3832
+ onClose && onClose();
3833
+ }
3834
+ };
3825
3835
  return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3826
3836
  ModalWithHeader,
3827
3837
  {
@@ -3835,7 +3845,7 @@ function EmailModal({
3835
3845
  children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
3836
3846
  setEmailVal(email);
3837
3847
  setStep("verify");
3838
- } }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(StepVerify, { email: emailVal, type, onSuccess: onLogin })
3848
+ } }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(StepVerify, { email: emailVal, type, onSuccess: verifySuccess })
3839
3849
  }
3840
3850
  );
3841
3851
  }