0xtrails 0.9.1 → 0.9.2

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.
@@ -1,4 +1,4 @@
1
- import { aB as b, aC as O, aD as F, aE as q, aF as $, aG as L, aH as E, aI as D, aJ as w, aK as G, aL as R, aM as I, aN as T, aO as y, aP as x, aQ as M, aR as m, aS as C, aT as H, aU as U, aV as v, aW as B, aX as A, aY as j } from "./index-B6r2LXCk.js";
1
+ import { aB as b, aC as O, aD as F, aE as q, aF as $, aG as L, aH as E, aI as D, aJ as w, aK as G, aL as R, aM as I, aN as T, aO as y, aP as x, aQ as M, aR as m, aS as C, aT as H, aU as U, aV as v, aW as B, aX as A, aY as j } from "./index-D-QngA_s.js";
2
2
  function J(a) {
3
3
  const { abi: r, data: e } = a, s = b(e, 0, 4), t = r.find((n) => n.type === "function" && s === O(F(n)));
4
4
  if (!t)
@@ -39492,7 +39492,7 @@ const Uo = /* @__PURE__ */ new Map(), il = {
39492
39492
  Uo.clear();
39493
39493
  },
39494
39494
  getAll: () => Array.from(Uo.keys())
39495
- }, Ore = "0.9.1", Mre = {
39495
+ }, Ore = "0.9.2", Mre = {
39496
39496
  version: Ore
39497
39497
  };
39498
39498
  let $i = null;
@@ -44554,7 +44554,7 @@ async function P9(e, t) {
44554
44554
  });
44555
44555
  return V === "0x" ? { data: void 0 } : { data: V };
44556
44556
  } catch (G) {
44557
- const W = eie(G), { offchainLookup: M, offchainLookupSignature: _ } = await import("./ccip-C2oii9SB.js");
44557
+ const W = eie(G), { offchainLookup: M, offchainLookupSignature: _ } = await import("./ccip-g6lDdnrD.js");
44558
44558
  if (e.ccipRead !== !1 && W?.slice(0, 10) === _ && x)
44559
44559
  return { data: await M(e, { data: W, to: x }) };
44560
44560
  throw j && W?.slice(0, 10) === "0x101bb98d" ? new Poe({ factory: f }) : joe(G, {
@@ -53161,9 +53161,7 @@ async function jle(e) {
53161
53161
  `Destination public client chain ID mismatch: expected ${a}, got ${we}`
53162
53162
  );
53163
53163
  }
53164
- const te = ese(
53165
- k || "0.01"
53166
- );
53164
+ const te = k !== void 0 ? k : ese("0.01");
53167
53165
  if (!v)
53168
53166
  throw new Error("Source token decimals not provided");
53169
53167
  if (!w)
@@ -75697,7 +75695,7 @@ const afe = ({
75697
75695
  yellow: "text-yellow-600 dark:text-yellow-400",
75698
75696
  blue: "text-blue-600 dark:text-blue-400"
75699
75697
  };
75700
- return /* @__PURE__ */ l(Ke, { children: /* @__PURE__ */ l("div", { className: `mt-4 p-4 rounded-lg border ${ke[ve]}`, children: /* @__PURE__ */ g("div", { className: "flex items-start space-x-3", children: [
75698
+ return /* @__PURE__ */ l("div", { className: `mt-4 p-4 rounded-lg border ${ke[ve]}`, children: /* @__PURE__ */ g("div", { className: "flex items-start space-x-3", children: [
75701
75699
  /* @__PURE__ */ l("div", { className: "flex-shrink-0 mt-0.5", children: ve === "yellow" || ve === "blue" || O.status?.toUpperCase() === "SETTLING" ? /* @__PURE__ */ g(
75702
75700
  "svg",
75703
75701
  {
@@ -75768,7 +75766,7 @@ const afe = ({
75768
75766
  ]
75769
75767
  }
75770
75768
  ) }),
75771
- /* @__PURE__ */ g("div", { className: "flex-1", children: [
75769
+ /* @__PURE__ */ g("div", { className: "flex-1 text-left", children: [
75772
75770
  /* @__PURE__ */ l("p", { className: `text-sm font-medium ${$e[ve]}`, children: me(O.status) }),
75773
75771
  /* @__PURE__ */ g(
75774
75772
  "p",
@@ -75795,7 +75793,7 @@ const afe = ({
75795
75793
  }
75796
75794
  )
75797
75795
  ] })
75798
- ] }) }) });
75796
+ ] }) });
75799
75797
  }
75800
75798
  return /* @__PURE__ */ g(Ke, { children: [
75801
75799
  /* @__PURE__ */ l("div", { className: "mt-4 p-4 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-700", children: /* @__PURE__ */ g("div", { className: "flex items-start space-x-3", children: [
@@ -75908,7 +75906,7 @@ const afe = ({
75908
75906
  /* @__PURE__ */ l("span", { className: "text-lg font-mono font-bold text-blue-600 dark:text-blue-400", children: ae(Y()) })
75909
75907
  ] })
75910
75908
  ] }) }),
75911
- !k && /* @__PURE__ */ l("p", { className: "mt-4 text-sm text-gray-600 dark:text-gray-400", children: "Complete the payment within the time limit. We use USDC on Base network as the intermediary token, please do not change it." }),
75909
+ !k && /* @__PURE__ */ l("p", { className: "mt-4 text-sm text-left text-gray-600 dark:text-gray-400", children: "Complete the payment within the time limit. We use USDC on Base network as the intermediary token, please do not change it." }),
75912
75910
  /* @__PURE__ */ l(
75913
75911
  WT,
75914
75912
  {
@@ -75917,10 +75915,13 @@ const afe = ({
75917
75915
  tokenSize: 20
75918
75916
  }
75919
75917
  ),
75920
- k && /* @__PURE__ */ l("p", { className: "mt-4 text-sm text-gray-600 dark:text-gray-400", children: "Your transaction is settling with payment provider. This usually takes 1-5 minutes to complete." }),
75918
+ k && /* @__PURE__ */ l("p", { className: "mt-4 text-sm text-left text-gray-600 dark:text-gray-400", children: "Your transaction is settling with payment provider. This usually takes 1-5 minutes to complete." }),
75921
75919
  le(),
75922
75920
  J(),
75923
- /* @__PURE__ */ l("div", { className: "mt-3 p-3 bg-amber-50 dark:bg-amber-900/20 rounded-lg border border-amber-200 dark:border-amber-700", children: /* @__PURE__ */ l("p", { className: "text-sm font-medium text-amber-800 dark:text-amber-200", children: "⚠️ Important: Do not close this window or navigate away while your payment is processing." }) })
75921
+ /* @__PURE__ */ l("div", { className: "mt-3 p-3 bg-amber-50 dark:bg-amber-900/20 rounded-lg border border-amber-200 dark:border-amber-700", children: /* @__PURE__ */ g("div", { className: "flex items-start space-x-3", children: [
75922
+ /* @__PURE__ */ l("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ l("span", { className: "text-amber-600 dark:text-amber-400", children: "⚠️" }) }),
75923
+ /* @__PURE__ */ l("div", { className: "flex-1 text-left", children: /* @__PURE__ */ l("p", { className: "text-sm font-medium text-amber-800 dark:text-amber-200", children: "Important: Do not close this window or navigate away while your payment is processing." }) })
75924
+ ] }) })
75924
75925
  ]
75925
75926
  }
75926
75927
  ),
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { l as d, u as Ce, a as we, b as Ee, c as Se, d as ye, e as pe, g as B, f as $, h as ee, T as H, i as Pe, j as te, k as Re, p as Ue, m as D } from "./index-B6r2LXCk.js";
2
- import { I as Je, aj as Ye, ao as ve, aA as be, az as et, ar as tt, al as nt, ay as ot, U as st, G as rt, at, ad as it, H as ct, J as dt, K as lt, a4 as ut, ax as ft, av as Tt, a5 as mt, a7 as gt, af as kt, a8 as ht, a6 as At, V as It, P as Ct, C as wt, E as Et, ak as St, W as yt, as as pt, o as Pt, n as Rt, x as Ut, s as Ht, t as xt, w as Ot, v as Lt, q as Bt, r as Dt, y as qt, am as Mt, ap as Wt, z as Ft, D as Nt, A as jt, $ as Qt, a9 as _t, an as $t, ai as Gt, ac as Xt, ah as zt, ag as Kt, ae as Vt, N as Zt, L as Jt, M as Yt, au as vt, X as bt, Q as en, F as tn, S as nn, a1 as on, Y as sn, Z as rn, aw as an, R as cn, aq as dn, O as ln, B as un, a2 as fn, _ as Tn, a3 as mn, a0 as gn, aa as kn, ab as hn } from "./index-B6r2LXCk.js";
1
+ import { l as d, u as Ce, a as we, b as Ee, c as Se, d as ye, e as pe, g as B, f as $, h as ee, T as H, i as Pe, j as te, k as Re, p as Ue, m as D } from "./index-D-QngA_s.js";
2
+ import { I as Je, aj as Ye, ao as ve, aA as be, az as et, ar as tt, al as nt, ay as ot, U as st, G as rt, at, ad as it, H as ct, J as dt, K as lt, a4 as ut, ax as ft, av as Tt, a5 as mt, a7 as gt, af as kt, a8 as ht, a6 as At, V as It, P as Ct, C as wt, E as Et, ak as St, W as yt, as as pt, o as Pt, n as Rt, x as Ut, s as Ht, t as xt, w as Ot, v as Lt, q as Bt, r as Dt, y as qt, am as Mt, ap as Wt, z as Ft, D as Nt, A as jt, $ as Qt, a9 as _t, an as $t, ai as Gt, ac as Xt, ah as zt, ag as Kt, ae as Vt, N as Zt, L as Jt, M as Yt, au as vt, X as bt, Q as en, F as tn, S as nn, a1 as on, Y as sn, Z as rn, aw as an, R as cn, aq as dn, O as ln, B as un, a2 as fn, _ as Tn, a3 as mn, a0 as gn, aa as kn, ab as hn } from "./index-D-QngA_s.js";
3
3
  import { useQuery as He, useQueryClient as xe, useMutation as Oe } from "@tanstack/react-query";
4
4
  import { useRef as Le, useCallback as q } from "react";
5
5
  import { useWalletClient as Be, useAccount as De, useChainId as qe } from "wagmi";
@@ -146,7 +146,7 @@ function Ke(s) {
146
146
  (t) => t.contractAddress?.toLowerCase() === a?.toLowerCase() && t.chainId === r
147
147
  ), J = P?.find(
148
148
  (t) => t.contractAddress?.toLowerCase() === w?.toLowerCase() && t.chainId === h
149
- ), { getChainRpcClient: _ } = await import("./index-B6r2LXCk.js").then((t) => t.aZ), Y = _(r), v = _(h), b = async (t, i) => {
149
+ ), { getChainRpcClient: _ } = await import("./index-D-QngA_s.js").then((t) => t.aZ), Y = _(r), v = _(h), b = async (t, i) => {
150
150
  try {
151
151
  const y = i === r ? Y : i === h ? v : _(i);
152
152
  return y ? t.toLowerCase() === p.toLowerCase() ? te(i)?.nativeCurrency.decimals ?? 18 : await y.readContract({
@@ -1 +1 @@
1
- {"version":3,"file":"prepareSend.d.ts","sourceRoot":"","sources":["../src/prepareSend.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EAKvB,MAAM,8BAA8B,CAAA;AAErC,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,GACX,MAAM,8BAA8B,CAAA;AAGrC,OAAO,EACL,WAAW,EACX,WAAW,GACZ,MAAM,8BAA8B,CAAA;AAErC,wBAAsB,WAAW,CAC/B,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,iBAAiB,CAAC,CA+f5B;AAGD,YAAY,EACV,aAAa,EACb,KAAK,EACL,cAAc,EACd,UAAU,EACV,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAGrD,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,WAAW,EACX,4BAA4B,EAC5B,wBAAwB,EACxB,SAAS,GACV,MAAM,8BAA8B,CAAA"}
1
+ {"version":3,"file":"prepareSend.d.ts","sourceRoot":"","sources":["../src/prepareSend.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EAKvB,MAAM,8BAA8B,CAAA;AAErC,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,GACX,MAAM,8BAA8B,CAAA;AAGrC,OAAO,EACL,WAAW,EACX,WAAW,GACZ,MAAM,8BAA8B,CAAA;AAErC,wBAAsB,WAAW,CAC/B,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,iBAAiB,CAAC,CAkgB5B;AAGD,YAAY,EACV,aAAa,EACb,KAAK,EACL,cAAc,EACd,UAAU,EACV,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAGrD,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,WAAW,EACX,4BAA4B,EAC5B,wBAAwB,EACxB,SAAS,GACV,MAAM,8BAA8B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"OnrampProviderConfirmation.d.ts","sourceRoot":"","sources":["../../../src/widget/components/OnrampProviderConfirmation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAS5D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4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KACrB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC,GACnB,IAAI,CAAA;CACT;AAED,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAC/C,+BAA+B,CA24BhC,CAAA;AAED,eAAe,0BAA0B,CAAA"}
@@ -1,4 +1,4 @@
1
- import { aA as s, az as l, al as o, ay as e, ax as i, a as d, b as T } from "../index-B6r2LXCk.js";
1
+ import { aA as s, az as l, al as o, ay as e, ax as i, a as d, b as T } from "../index-D-QngA_s.js";
2
2
  export {
3
3
  s as TrailsHookModal,
4
4
  l as TrailsModalProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "0xtrails",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "SDK for Trails",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -118,11 +118,14 @@ export async function prepareSend(
118
118
  }
119
119
  }
120
120
 
121
- // Use slippage from options, or get from localStorage with config default fallback
122
- // The config default (slippageToleranceFromOptions) comes from React component context
123
- const slippageTolerance = getSlippageToleranceValue(
124
- slippageToleranceFromOptions || "0.01",
125
- )
121
+ // Use slippage tolerance priority:
122
+ // 1. If explicitly passed as prop use that value
123
+ // 2. If not passed → check localStorage via getSlippageToleranceValue
124
+ // 3. If localStorage has no value → fallback to "0.01"
125
+ const slippageTolerance =
126
+ slippageToleranceFromOptions !== undefined
127
+ ? slippageToleranceFromOptions
128
+ : getSlippageToleranceValue("0.01")
126
129
 
127
130
  if (!sourceTokenDecimals) {
128
131
  throw new Error("Source token decimals not provided")
@@ -10,7 +10,7 @@ import { useDepositMonitor } from "../hooks/useDepositMonitor.js"
10
10
  import { logger } from "../../logger.js"
11
11
  import { TruncatedTransactionHash } from "./TruncatedTransactionHash.js"
12
12
  import { useAccount } from "wagmi"
13
- import { OnrampQuote } from "../hooks/useOnRampQuote.js"
13
+ import type { OnrampQuote } from "../hooks/useOnRampQuote.js"
14
14
  import { TokenImage } from "./TokenImage.js"
15
15
 
16
16
  // TokenDiagram component for displaying the token flow
@@ -714,95 +714,92 @@ export const OnrampProviderConfirmation: React.FC<
714
714
  }
715
715
 
716
716
  return (
717
- <>
718
- <div className={`mt-4 p-4 rounded-lg border ${colorClasses[color]}`}>
719
- <div className="flex items-start space-x-3">
720
- {/* Icon */}
721
- <div className="flex-shrink-0 mt-0.5">
722
- {color === "yellow" ||
723
- color === "blue" ||
724
- transaction.status?.toUpperCase() === "SETTLING" ? (
725
- <svg
726
- className={`w-5 h-5 ${iconColorClasses[color]} animate-spin`}
727
- fill="none"
728
- viewBox="0 0 24 24"
729
- >
730
- <title>Processing</title>
731
- <circle
732
- className="opacity-25"
733
- cx="12"
734
- cy="12"
735
- r="10"
736
- stroke="currentColor"
737
- strokeWidth="4"
738
- />
739
- <path
740
- className="opacity-75"
741
- fill="currentColor"
742
- d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
743
- />
744
- </svg>
745
- ) : color === "green" ? (
746
- <svg
747
- className={`w-5 h-5 ${iconColorClasses[color]}`}
748
- fill="none"
749
- viewBox="0 0 24 24"
750
- stroke="currentColor"
751
- >
752
- <title>Success</title>
753
- <path
754
- strokeLinecap="round"
755
- strokeLinejoin="round"
756
- strokeWidth={2}
757
- d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
758
- />
759
- </svg>
760
- ) : (
761
- <svg
762
- className={`w-5 h-5 ${iconColorClasses[color]}`}
763
- fill="none"
764
- viewBox="0 0 24 24"
717
+ <div className={`mt-4 p-4 rounded-lg border ${colorClasses[color]}`}>
718
+ <div className="flex items-start space-x-3">
719
+ {/* Icon */}
720
+ <div className="flex-shrink-0 mt-0.5">
721
+ {color === "yellow" ||
722
+ color === "blue" ||
723
+ transaction.status?.toUpperCase() === "SETTLING" ? (
724
+ <svg
725
+ className={`w-5 h-5 ${iconColorClasses[color]} animate-spin`}
726
+ fill="none"
727
+ viewBox="0 0 24 24"
728
+ >
729
+ <title>Processing</title>
730
+ <circle
731
+ className="opacity-25"
732
+ cx="12"
733
+ cy="12"
734
+ r="10"
765
735
  stroke="currentColor"
766
- >
767
- <title>Error</title>
768
- <path
769
- strokeLinecap="round"
770
- strokeLinejoin="round"
771
- strokeWidth={2}
772
- d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
773
- />
774
- </svg>
775
- )}
776
- </div>
736
+ strokeWidth="4"
737
+ />
738
+ <path
739
+ className="opacity-75"
740
+ fill="currentColor"
741
+ d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
742
+ />
743
+ </svg>
744
+ ) : color === "green" ? (
745
+ <svg
746
+ className={`w-5 h-5 ${iconColorClasses[color]}`}
747
+ fill="none"
748
+ viewBox="0 0 24 24"
749
+ stroke="currentColor"
750
+ >
751
+ <title>Success</title>
752
+ <path
753
+ strokeLinecap="round"
754
+ strokeLinejoin="round"
755
+ strokeWidth={2}
756
+ d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
757
+ />
758
+ </svg>
759
+ ) : (
760
+ <svg
761
+ className={`w-5 h-5 ${iconColorClasses[color]}`}
762
+ fill="none"
763
+ viewBox="0 0 24 24"
764
+ stroke="currentColor"
765
+ >
766
+ <title>Error</title>
767
+ <path
768
+ strokeLinecap="round"
769
+ strokeLinejoin="round"
770
+ strokeWidth={2}
771
+ d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
772
+ />
773
+ </svg>
774
+ )}
775
+ </div>
777
776
 
778
- {/* Content */}
779
- <div className="flex-1">
780
- <p className={`text-sm font-medium ${textColorClasses[color]}`}>
781
- {getStatusMessage(transaction.status)}
782
- </p>
777
+ {/* Content */}
778
+ <div className="flex-1 text-left">
779
+ <p className={`text-sm font-medium ${textColorClasses[color]}`}>
780
+ {getStatusMessage(transaction.status)}
781
+ </p>
782
+ <p
783
+ className={`text-xs mt-1 ${textColorClasses[color]} opacity-75`}
784
+ >
785
+ Status:{" "}
786
+ {transaction.status === "ERROR"
787
+ ? "PROCESSING"
788
+ : transaction.status?.toUpperCase()}
789
+ </p>
790
+ {(transaction.sourceAmount || transaction.destinationAmount) && (
783
791
  <p
784
792
  className={`text-xs mt-1 ${textColorClasses[color]} opacity-75`}
785
793
  >
786
- Status:{" "}
787
- {transaction.status === "ERROR"
788
- ? "PROCESSING"
789
- : transaction.status?.toUpperCase()}
794
+ Amount:{" "}
795
+ {transaction.sourceAmount || transaction.destinationAmount}{" "}
796
+ {transaction.sourceCurrencyCode ||
797
+ transaction.destinationCurrencyCode}
790
798
  </p>
791
- {(transaction.sourceAmount ||
792
- transaction.destinationAmount) && (
793
- <p
794
- className={`text-xs mt-1 ${textColorClasses[color]} opacity-75`}
795
- >
796
- Amount:{" "}
797
- {transaction.sourceAmount || transaction.destinationAmount}{" "}
798
- {transaction.sourceCurrencyCode ||
799
- transaction.destinationCurrencyCode}
800
- </p>
801
- )}
802
- </div>
799
+ )}
803
800
  </div>
804
801
  </div>
805
- </>
802
+ </div>
806
803
  )
807
804
  }
808
805
 
@@ -936,7 +933,7 @@ export const OnrampProviderConfirmation: React.FC<
936
933
 
937
934
  {/* Warning */}
938
935
  {!isCountingUp && (
939
- <p className="mt-4 text-sm text-gray-600 dark:text-gray-400">
936
+ <p className="mt-4 text-sm text-left text-gray-600 dark:text-gray-400">
940
937
  Complete the payment within the time limit. We use USDC on Base
941
938
  network as the intermediary token, please do not change it.
942
939
  </p>
@@ -947,7 +944,7 @@ export const OnrampProviderConfirmation: React.FC<
947
944
  tokenSize={20}
948
945
  />
949
946
  {isCountingUp && (
950
- <p className="mt-4 text-sm text-gray-600 dark:text-gray-400">
947
+ <p className="mt-4 text-sm text-left text-gray-600 dark:text-gray-400">
951
948
  Your transaction is settling with payment provider. This usually
952
949
  takes 1-5 minutes to complete.
953
950
  </p>
@@ -961,10 +958,20 @@ export const OnrampProviderConfirmation: React.FC<
961
958
 
962
959
  {/* Important Notice - Now at the bottom */}
963
960
  <div className="mt-3 p-3 bg-amber-50 dark:bg-amber-900/20 rounded-lg border border-amber-200 dark:border-amber-700">
964
- <p className="text-sm font-medium text-amber-800 dark:text-amber-200">
965
- ⚠️ Important: Do not close this window or navigate away while
966
- your payment is processing.
967
- </p>
961
+ <div className="flex items-start space-x-3">
962
+ {/* Icon */}
963
+ <div className="flex-shrink-0 mt-0.5">
964
+ <span className="text-amber-600 dark:text-amber-400">⚠️</span>
965
+ </div>
966
+
967
+ {/* Content */}
968
+ <div className="flex-1 text-left">
969
+ <p className="text-sm font-medium text-amber-800 dark:text-amber-200">
970
+ Important: Do not close this window or navigate away while
971
+ your payment is processing.
972
+ </p>
973
+ </div>
974
+ </div>
968
975
  </div>
969
976
  </div>
970
977