@loafmarkets/ui 0.1.395 → 0.1.396

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/index.js CHANGED
@@ -6844,6 +6844,16 @@ var LoginPopup = ({
6844
6844
  setLoading(false);
6845
6845
  }
6846
6846
  };
6847
+ const handleWalletHandleDismiss = async () => {
6848
+ if (gate) {
6849
+ if (await finishGate()) {
6850
+ suppressAutoCloseRef.current = false;
6851
+ onClose();
6852
+ }
6853
+ return;
6854
+ }
6855
+ onClose();
6856
+ };
6847
6857
  const handleEmailClick = (signUp = false) => {
6848
6858
  setIsSignUp(signUp);
6849
6859
  setView("email");
@@ -7181,8 +7191,8 @@ var LoginPopup = ({
7181
7191
  ] }) });
7182
7192
  }
7183
7193
  if (view === "wallet-handle") {
7184
- return /* @__PURE__ */ jsxRuntime.jsx(Overlay2, { $transparent: gate, onClick: loading ? void 0 : onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(PopupContainer, { onClick: (event) => event.stopPropagation(), children: [
7185
- !loading && /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClick: onClose, "aria-label": "Close login popup", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }) }),
7194
+ return /* @__PURE__ */ jsxRuntime.jsx(Overlay2, { $transparent: gate, onClick: loading ? void 0 : handleWalletHandleDismiss, children: /* @__PURE__ */ jsxRuntime.jsxs(PopupContainer, { onClick: (event) => event.stopPropagation(), children: [
7195
+ !loading && /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClick: handleWalletHandleDismiss, "aria-label": "Close login popup", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }) }),
7186
7196
  /* @__PURE__ */ jsxRuntime.jsxs(Title, { children: [
7187
7197
  /* @__PURE__ */ jsxRuntime.jsx(LogoContainer3, { children: /* @__PURE__ */ jsxRuntime.jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
7188
7198
  "Claim your handle"