@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.mjs CHANGED
@@ -6819,6 +6819,16 @@ var LoginPopup = ({
6819
6819
  setLoading(false);
6820
6820
  }
6821
6821
  };
6822
+ const handleWalletHandleDismiss = async () => {
6823
+ if (gate) {
6824
+ if (await finishGate()) {
6825
+ suppressAutoCloseRef.current = false;
6826
+ onClose();
6827
+ }
6828
+ return;
6829
+ }
6830
+ onClose();
6831
+ };
6822
6832
  const handleEmailClick = (signUp = false) => {
6823
6833
  setIsSignUp(signUp);
6824
6834
  setView("email");
@@ -7156,8 +7166,8 @@ var LoginPopup = ({
7156
7166
  ] }) });
7157
7167
  }
7158
7168
  if (view === "wallet-handle") {
7159
- return /* @__PURE__ */ jsx(Overlay2, { $transparent: gate, onClick: loading ? void 0 : onClose, children: /* @__PURE__ */ jsxs(PopupContainer, { onClick: (event) => event.stopPropagation(), children: [
7160
- !loading && /* @__PURE__ */ jsx(CloseButton, { onClick: onClose, "aria-label": "Close login popup", children: /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ 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" }) }) }),
7169
+ return /* @__PURE__ */ jsx(Overlay2, { $transparent: gate, onClick: loading ? void 0 : handleWalletHandleDismiss, children: /* @__PURE__ */ jsxs(PopupContainer, { onClick: (event) => event.stopPropagation(), children: [
7170
+ !loading && /* @__PURE__ */ jsx(CloseButton, { onClick: handleWalletHandleDismiss, "aria-label": "Close login popup", children: /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ 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" }) }) }),
7161
7171
  /* @__PURE__ */ jsxs(Title, { children: [
7162
7172
  /* @__PURE__ */ jsx(LogoContainer3, { children: /* @__PURE__ */ jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
7163
7173
  "Claim your handle"