@loafmarkets/ui 0.1.127 → 0.1.129
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 +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6373,6 +6373,13 @@ var LoginPopup = ({
|
|
|
6373
6373
|
onClose();
|
|
6374
6374
|
}
|
|
6375
6375
|
}, [autoCloseOnAuth, currentUser, isAuthenticated, onClose, view]);
|
|
6376
|
+
React5.useEffect(() => {
|
|
6377
|
+
const handleEsc = (e) => {
|
|
6378
|
+
if (e.key === "Escape") onClose();
|
|
6379
|
+
};
|
|
6380
|
+
window.addEventListener("keydown", handleEsc);
|
|
6381
|
+
return () => window.removeEventListener("keydown", handleEsc);
|
|
6382
|
+
}, [onClose]);
|
|
6376
6383
|
const handleWalletLogin = async () => {
|
|
6377
6384
|
if (onWalletLogin) {
|
|
6378
6385
|
try {
|
|
@@ -6846,7 +6853,7 @@ var LoginPopup = ({
|
|
|
6846
6853
|
] }) });
|
|
6847
6854
|
}
|
|
6848
6855
|
if (view === "funding") {
|
|
6849
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Overlay2, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6856
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Overlay2, { onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6850
6857
|
FundingPopupContainer,
|
|
6851
6858
|
{
|
|
6852
6859
|
onClick: (event) => event.stopPropagation(),
|