@loafmarkets/ui 0.1.322 → 0.1.324
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 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6607,10 +6607,11 @@ var LoginPopup = ({
|
|
|
6607
6607
|
}
|
|
6608
6608
|
setFundingError("");
|
|
6609
6609
|
setCryptoFundingLoading(true);
|
|
6610
|
-
const fundPromise = onFundWallet({ amount: fundingAmount, mode: "crypto" });
|
|
6611
|
-
onClose();
|
|
6612
6610
|
try {
|
|
6613
|
-
await
|
|
6611
|
+
const result = await onFundWallet({ amount: fundingAmount, mode: "crypto" });
|
|
6612
|
+
if (result?.funded) {
|
|
6613
|
+
onClose();
|
|
6614
|
+
}
|
|
6614
6615
|
} catch (err) {
|
|
6615
6616
|
console.error("[LoginPopup] crypto fund flow failed", err);
|
|
6616
6617
|
} finally {
|
|
@@ -6910,8 +6911,8 @@ var LoginPopup = ({
|
|
|
6910
6911
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M22 10H18a2 2 0 0 0 0 4h4" })
|
|
6911
6912
|
] }),
|
|
6912
6913
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flex: 1 }, children: [
|
|
6913
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: cryptoFundingLoading ? "Opening Coinbase\u2026" : "
|
|
6914
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: "0.8rem" }, children: "
|
|
6914
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: cryptoFundingLoading ? "Opening Coinbase\u2026" : "Digital Asset Deposit" }),
|
|
6915
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: "0.8rem" }, children: "Deposit USDC from an exchange or wallet" })
|
|
6915
6916
|
] })
|
|
6916
6917
|
] }),
|
|
6917
6918
|
/* @__PURE__ */ jsxRuntime.jsxs(ModalOptionCard, { onClick: handleFiatFund, disabled: fiatFundingLoading, children: [
|
|
@@ -6924,8 +6925,8 @@ var LoginPopup = ({
|
|
|
6924
6925
|
/* @__PURE__ */ jsxRuntime.jsx("polygon", { points: "12 2 20 7 4 7" })
|
|
6925
6926
|
] }),
|
|
6926
6927
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flex: 1 }, children: [
|
|
6927
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: fiatFundingLoading ? "Loading widget\u2026" : "
|
|
6928
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: "0.8rem" }, children: "
|
|
6928
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: fiatFundingLoading ? "Loading widget\u2026" : "Bank Deposit" }),
|
|
6929
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: "0.8rem" }, children: "Deposit to your account via card or bank transfer" })
|
|
6929
6930
|
] })
|
|
6930
6931
|
] })
|
|
6931
6932
|
] }),
|