@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.
package/dist/api.mjs CHANGED
@@ -2,11 +2,11 @@ import {
2
2
  bind_exports,
3
3
  poh_exports,
4
4
  user_exports
5
- } from "./chunk-7K4E64WH.mjs";
5
+ } from "./chunk-SEACJPL6.mjs";
6
6
  import {
7
7
  isSuccess,
8
8
  wallet_exports
9
- } from "./chunk-RPATABCS.mjs";
9
+ } from "./chunk-EMSBFHPM.mjs";
10
10
  import "./chunk-UA6XHZHX.mjs";
11
11
  import "./chunk-IZOOVZAD.mjs";
12
12
  import "./chunk-FQ6PYZPD.mjs";
@@ -3219,7 +3219,7 @@ function BusinessProvider({ children }) {
3219
3219
  {
3220
3220
  isOpen: EmailModalStore.isOpen && (EmailModalStore.type == "login" && !overview && !token || EmailModalStore.type == "bind" && !!token && !!overview),
3221
3221
  onClose: EmailModalStore.close,
3222
- onLogin: () => EmailModalStore.close,
3222
+ onLogin: EmailModalStore.close,
3223
3223
  type: EmailModalStore.type,
3224
3224
  zIndex: 199
3225
3225
  }
@@ -4992,6 +4992,16 @@ function EmailModal({
4992
4992
  setEmailVal("");
4993
4993
  }
4994
4994
  }, [isOpen]);
4995
+ const verifySuccess = () => {
4996
+ console.log("verifySuccess", onLogin);
4997
+ if (onLogin) {
4998
+ console.log("verifySuccess to login");
4999
+ onLogin();
5000
+ } else {
5001
+ console.log("verifySuccess to close");
5002
+ onClose && onClose();
5003
+ }
5004
+ };
4995
5005
  return /* @__PURE__ */ jsx29(
4996
5006
  ModalWithHeader,
4997
5007
  {
@@ -5005,7 +5015,7 @@ function EmailModal({
5005
5015
  children: step === "input" ? /* @__PURE__ */ jsx29(StepEmail, { email: emailVal, onContinue: (email) => {
5006
5016
  setEmailVal(email);
5007
5017
  setStep("verify");
5008
- } }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, type, onSuccess: onLogin })
5018
+ } }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, type, onSuccess: verifySuccess })
5009
5019
  }
5010
5020
  );
5011
5021
  }
@@ -7765,4 +7775,4 @@ export {
7765
7775
  MatchProvider,
7766
7776
  useMatch
7767
7777
  };
7768
- //# sourceMappingURL=chunk-RPATABCS.mjs.map
7778
+ //# sourceMappingURL=chunk-EMSBFHPM.mjs.map