@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.mjs CHANGED
@@ -6581,10 +6581,11 @@ var LoginPopup = ({
6581
6581
  }
6582
6582
  setFundingError("");
6583
6583
  setCryptoFundingLoading(true);
6584
- const fundPromise = onFundWallet({ amount: fundingAmount, mode: "crypto" });
6585
- onClose();
6586
6584
  try {
6587
- await fundPromise;
6585
+ const result = await onFundWallet({ amount: fundingAmount, mode: "crypto" });
6586
+ if (result?.funded) {
6587
+ onClose();
6588
+ }
6588
6589
  } catch (err) {
6589
6590
  console.error("[LoginPopup] crypto fund flow failed", err);
6590
6591
  } finally {
@@ -6884,8 +6885,8 @@ var LoginPopup = ({
6884
6885
  /* @__PURE__ */ jsx("path", { d: "M22 10H18a2 2 0 0 0 0 4h4" })
6885
6886
  ] }),
6886
6887
  /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
6887
- /* @__PURE__ */ jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: cryptoFundingLoading ? "Opening Coinbase\u2026" : "Crypto Deposit" }),
6888
- /* @__PURE__ */ jsx("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: "0.8rem" }, children: "Transfer USDC from another exchange or wallet" })
6888
+ /* @__PURE__ */ jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: cryptoFundingLoading ? "Opening Coinbase\u2026" : "Digital Asset Deposit" }),
6889
+ /* @__PURE__ */ jsx("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: "0.8rem" }, children: "Deposit USDC from an exchange or wallet" })
6889
6890
  ] })
6890
6891
  ] }),
6891
6892
  /* @__PURE__ */ jsxs(ModalOptionCard, { onClick: handleFiatFund, disabled: fiatFundingLoading, children: [
@@ -6898,8 +6899,8 @@ var LoginPopup = ({
6898
6899
  /* @__PURE__ */ jsx("polygon", { points: "12 2 20 7 4 7" })
6899
6900
  ] }),
6900
6901
  /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
6901
- /* @__PURE__ */ jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: fiatFundingLoading ? "Loading widget\u2026" : "Fiat Onramp" }),
6902
- /* @__PURE__ */ jsx("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: "0.8rem" }, children: "Buy USDC instantly with your card or local payment methods" })
6902
+ /* @__PURE__ */ jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: fiatFundingLoading ? "Loading widget\u2026" : "Bank Deposit" }),
6903
+ /* @__PURE__ */ jsx("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: "0.8rem" }, children: "Deposit to your account via card or bank transfer" })
6903
6904
  ] })
6904
6905
  ] })
6905
6906
  ] }),