@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.mjs
CHANGED
|
@@ -6347,6 +6347,13 @@ var LoginPopup = ({
|
|
|
6347
6347
|
onClose();
|
|
6348
6348
|
}
|
|
6349
6349
|
}, [autoCloseOnAuth, currentUser, isAuthenticated, onClose, view]);
|
|
6350
|
+
useEffect(() => {
|
|
6351
|
+
const handleEsc = (e) => {
|
|
6352
|
+
if (e.key === "Escape") onClose();
|
|
6353
|
+
};
|
|
6354
|
+
window.addEventListener("keydown", handleEsc);
|
|
6355
|
+
return () => window.removeEventListener("keydown", handleEsc);
|
|
6356
|
+
}, [onClose]);
|
|
6350
6357
|
const handleWalletLogin = async () => {
|
|
6351
6358
|
if (onWalletLogin) {
|
|
6352
6359
|
try {
|
|
@@ -6820,7 +6827,7 @@ var LoginPopup = ({
|
|
|
6820
6827
|
] }) });
|
|
6821
6828
|
}
|
|
6822
6829
|
if (view === "funding") {
|
|
6823
|
-
return /* @__PURE__ */ jsx(Overlay2, { children: /* @__PURE__ */ jsxs(
|
|
6830
|
+
return /* @__PURE__ */ jsx(Overlay2, { onClick: onClose, children: /* @__PURE__ */ jsxs(
|
|
6824
6831
|
FundingPopupContainer,
|
|
6825
6832
|
{
|
|
6826
6833
|
onClick: (event) => event.stopPropagation(),
|